fix hostname
This commit is contained in:
parent
db6045113d
commit
e00f12b5f1
1 changed files with 3 additions and 5 deletions
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
nixosConfig = host: inputs.nixpkgs.lib.nixosSystem {
|
nixosConfig = host: inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
specialArgs = args;
|
specialArgs = args // { hostname = host; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}/config.nix
|
./hosts/${host}/config.nix
|
||||||
];
|
];
|
||||||
|
|
@ -34,16 +34,14 @@
|
||||||
|
|
||||||
nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem {
|
nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
specialArgs = {
|
specialArgs = args // { hostname = host; };
|
||||||
hostname = host;
|
|
||||||
} // args;
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}/config.nix
|
./hosts/${host}/config.nix
|
||||||
inputs.ctp.nixosModules.catppuccin
|
inputs.ctp.nixosModules.catppuccin
|
||||||
inputs.hm.nixosModules.home-manager
|
inputs.hm.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = args;
|
extraSpecialArgs = args // { hostname = host; };
|
||||||
backupFileExtension = ".hm-backup";
|
backupFileExtension = ".hm-backup";
|
||||||
users.${args.username} = import ./hosts/${host}/home.nix;
|
users.${args.username} = import ./hosts/${host}/home.nix;
|
||||||
sharedModules = [ inputs.ctp.homeModules.catppuccin ];
|
sharedModules = [ inputs.ctp.homeModules.catppuccin ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue