chore!: prepare for multi-host config
This commit is contained in:
parent
98ea8fbe7d
commit
f6f21ba61d
3 changed files with 25 additions and 2 deletions
17
flake.nix
17
flake.nix
|
|
@ -10,10 +10,23 @@
|
|||
outputs =
|
||||
{ nixpkgs, home-manager, ... }:
|
||||
{
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations.selune = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./nixos/configuration.nix
|
||||
./hosts/selune/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.hms = ./home/home.nix;
|
||||
home-manager.backupFileExtension = "bak";
|
||||
}
|
||||
];
|
||||
};
|
||||
nixosConfigurations.shar = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/shar/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,16 @@
|
|||
# Use flakes.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Automatic updating.
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
# Automatic cleanup.
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue