shuffle and added system abstraction

This commit is contained in:
2026-10-17 14:28:04 +01:00
parent 19f28a9197
commit 88e0bbc11c
7 changed files with 23 additions and 4 deletions

View File

@@ -5,10 +5,8 @@
}: {
flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem {
modules = with self.nixosModules; [
hostConfiguration
system
user
networking
bootloader
];
};
}

View File

@@ -1,5 +1,5 @@
{...}: {
flake.nixosModules.system = {pkgs, ...}: {
flake.nixosModules.hostConfiguration = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
git
];

View File

@@ -0,0 +1,10 @@
{
self,
inputs,
...
}: {
flake.nixosConfigurations.newHost =
inputs.nixpkgs.lib.nixosSystem {
};
}

View File

@@ -0,0 +1,11 @@
{self, ...}: {
flake.nixosModules.system = {...}: let
modules = with self.nixosModules; [
user
networking
bootloader
];
in {
imports = modules;
};
}