Browse Source

hostnames moved around

master
Juni Kim 2 years ago
parent
commit
a106b7dea8
  1. 30
      flake.nix
  2. 1
      hardware.nix

30
flake.nix

@ -4,17 +4,45 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager }: {
nixosConfigurations.nixbox = nixpkgs.lib.nixosSystem {
nixosConfigurations.nixbox-cwm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModule
({config, ...}: {
networking.hostName = "nixbox-cwm";
})
./configuration.nix
./rices/cwm.nix
./hardware.nix
];
};
nixosConfigurations.nixbox-gnome = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModule
({config, ...}: {
networking.hostName = "nixbox-gnome";
})
./configuration.nix
./rices/gnome.nix
./hardware.nix
];
};
nixosConfigurations.nixbox-bspwm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModule
({config, ...}: {
networking.hostName = "nixbox-bspwm";
})
./configuration.nix
./rices/bspwm.nix
./hardware.nix
];
};
};
}

1
hardware.nix

@ -13,7 +13,6 @@
version = 2;
device = "/dev/vda";
};
networking.hostName = "nixbox"; # Define your hostname.
boot.initrd.availableKernelModules = [
"ahci" "xhci_pci" "virtio_pci"

Loading…
Cancel
Save