Update NixOS config.
This commit is contained in:
parent
099ef49629
commit
7824423337
2 changed files with 30 additions and 15 deletions
30
flake.nix
30
flake.nix
|
@ -13,39 +13,39 @@
|
|||
greynix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
/home/elias/nixos-config/base.nix
|
||||
/home/elias/nixos-config/greynix/configuration.nix
|
||||
./base.nix
|
||||
./greynix/configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.elias = import /home/elias/nixos-config/home.nix;
|
||||
home-manager.users.elias = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
} #close home-manager
|
||||
]; #close modules
|
||||
}; #close greynix
|
||||
|
||||
# bluenix - Blue Acer machine
|
||||
bluenix = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
/home/elias/nixos-config/base.nix
|
||||
/home/elias/nixos-config/bluenix/configuration.nix
|
||||
./base.nix
|
||||
./bluenix/configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.elias = import /home/elias/nixos-config/home.nix;
|
||||
home-manager.users.elias = import ./nixos-config/home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
} #close homemanager
|
||||
]; #close modules
|
||||
}; # close bluenix
|
||||
}; #close nixosconfigurations
|
||||
}; #close outputs
|
||||
}
|
||||
|
|
15
update.sh
Executable file
15
update.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
# add things to git
|
||||
git add .
|
||||
git commit -m "Update NixOS config."
|
||||
git push origin main
|
||||
|
||||
# update nixos
|
||||
# sudo nixos-rebuild switch --flake .#HOST
|
||||
#sudo nixos-rebuild switch --flake '.#greynix'
|
||||
#sudo nixos-rebuild switch --flake '.#bluenix'
|
||||
|
||||
# flake update
|
||||
# sudo nix flake update
|
||||
|
||||
# check on things
|
||||
# git status
|
Loading…
Add table
Add a link
Reference in a new issue