chore!: prepare for multi-host config

This commit is contained in:
Henri Saudubray 2026-01-20 21:05:14 +01:00
parent 98ea8fbe7d
commit f6f21ba61d
3 changed files with 25 additions and 2 deletions

View file

@ -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;

View file

@ -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;