re-work cli aspect for nixos and homeModules
This commit is contained in:
parent
5f1c05f090
commit
bfa2521ed0
13 changed files with 264 additions and 230 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{ inputs, self, ... }:
|
||||
{ inputs, lib, ... }:
|
||||
|
||||
{
|
||||
flake.nixosConfigurations.io = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
|
@ -12,48 +13,43 @@
|
|||
inputs.self.overlays.default
|
||||
];
|
||||
}
|
||||
|
||||
# Common aspects (always included)
|
||||
inputs.self.modules.nixos.common-boot
|
||||
inputs.self.modules.nixos.common-console
|
||||
inputs.self.modules.nixos.common-firewall
|
||||
inputs.self.modules.nixos.common-locale
|
||||
inputs.self.modules.nixos.common-nix
|
||||
inputs.self.modules.nixos.common-openssh
|
||||
inputs.self.modules.nixos.common-programs
|
||||
inputs.self.modules.nixos.common-security
|
||||
inputs.self.modules.nixos.common-services
|
||||
inputs.self.modules.nixos.common-tailscale
|
||||
|
||||
# User aspects
|
||||
inputs.self.modules.nixos.user
|
||||
inputs.self.modules.nixos.root
|
||||
|
||||
# Desktop aspects
|
||||
inputs.self.modules.nixos.desktop-boot
|
||||
inputs.self.modules.nixos.desktop-desktop
|
||||
inputs.self.modules.nixos.desktop-nix
|
||||
inputs.self.modules.nixos.desktop-services
|
||||
|
||||
# Other aspects based on tags
|
||||
inputs.self.modules.nixos.ai
|
||||
inputs.self.modules.nixos.bluetooth
|
||||
inputs.self.modules.nixos.dev
|
||||
inputs.self.modules.nixos.libvirtd
|
||||
inputs.self.modules.nixos.networkmanager
|
||||
inputs.self.modules.nixos.podman
|
||||
|
||||
# Factory-generated ephemeral module
|
||||
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_io)
|
||||
(inputs.self.factory.ephemeral {
|
||||
rootDevice = "/dev/mapper/cryptroot";
|
||||
})
|
||||
]
|
||||
++ (with inputs.self.modules.nixos; [
|
||||
cli
|
||||
|
||||
# Host-specific files (from _io/)
|
||||
./_io/hardware-configuration.nix
|
||||
./_io/disko.nix
|
||||
./_io/boot.nix
|
||||
./_io/programs.nix
|
||||
./_io/services.nix
|
||||
];
|
||||
# Common aspects (always included)
|
||||
common-boot
|
||||
common-console
|
||||
common-firewall
|
||||
common-locale
|
||||
common-nix
|
||||
common-openssh
|
||||
common-programs
|
||||
common-security
|
||||
common-services
|
||||
common-tailscale
|
||||
|
||||
# User aspects
|
||||
user
|
||||
root
|
||||
|
||||
# Desktop aspects
|
||||
desktop-boot
|
||||
desktop-desktop
|
||||
desktop-nix
|
||||
desktop-services
|
||||
|
||||
# Other aspects
|
||||
ai
|
||||
bluetooth
|
||||
dev
|
||||
libvirtd
|
||||
networkmanager
|
||||
podman
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue