2023-12-15 16:02:50 +00:00
|
|
|
{inputs, ...}: let
|
|
|
|
nixpkgs = inputs.nixpkgs;
|
|
|
|
home-manager = {
|
|
|
|
useUserPackages = true;
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2023-12-15 16:04:00 +00:00
|
|
|
users.laurent = ../home;
|
2023-12-15 16:02:50 +00:00
|
|
|
};
|
|
|
|
in {
|
2024-01-12 16:02:47 +00:00
|
|
|
# naming convention based on the periodic table
|
|
|
|
# NAS would be neodymium
|
|
|
|
# desktop would be neon
|
|
|
|
# smartphone would be lithium
|
|
|
|
|
|
|
|
# personal laptop
|
|
|
|
silicium = nixpkgs.lib.nixosSystem {
|
2023-12-15 16:02:50 +00:00
|
|
|
system = "x86_64-linux";
|
2023-12-15 16:08:47 +00:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2023-12-15 16:02:50 +00:00
|
|
|
modules = [
|
2024-01-12 16:02:47 +00:00
|
|
|
./silicium
|
2023-12-15 16:02:50 +00:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
inputs.lanzaboote.nixosModules.lanzaboote
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-nvidia-disable
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
{inherit home-manager;}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-01-15 15:50:55 +00:00
|
|
|
# work laptop
|
|
|
|
aurum = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
./aurum
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2024-03-31 14:30:01 +00:00
|
|
|
# inputs.disko.nixosModules.default
|
2024-01-15 15:50:55 +00:00
|
|
|
# inputs.lanzaboote.nixosModules.lanzaboote
|
|
|
|
# inputs.impermanence.nixosModules.impermanence
|
|
|
|
# inputs.nixos-hardware.nixosModules.dell-xps-13-something
|
2024-03-31 14:30:01 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
2024-01-15 15:50:55 +00:00
|
|
|
{inherit home-manager;}
|
|
|
|
];
|
|
|
|
};
|
2024-01-12 16:02:47 +00:00
|
|
|
|
|
|
|
# vps
|
|
|
|
cesium = nixpkgs.lib.nixosSystem rec {
|
2023-12-15 16:02:50 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
modules = [
|
2024-01-12 16:02:47 +00:00
|
|
|
./cesium
|
2023-12-15 16:02:50 +00:00
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
inputs.disko.nixosModules.default
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
inputs.lanzaboote.nixosModules.lanzaboote
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|