shuffle and added system abstraction
This commit is contained in:
@@ -5,10 +5,8 @@
|
||||
}: {
|
||||
flake.nixosConfigurations.host = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = with self.nixosModules; [
|
||||
hostConfiguration
|
||||
system
|
||||
user
|
||||
networking
|
||||
bootloader
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{...}: {
|
||||
flake.nixosModules.system = {pkgs, ...}: {
|
||||
flake.nixosModules.hostConfiguration = {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
];
|
||||
10
modules/hosts/newHost/newHost.nix
Normal file
10
modules/hosts/newHost/newHost.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
flake.nixosConfigurations.newHost =
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
};
|
||||
}
|
||||
11
modules/system/default.nix
Normal file
11
modules/system/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{self, ...}: {
|
||||
flake.nixosModules.system = {...}: let
|
||||
modules = with self.nixosModules; [
|
||||
user
|
||||
networking
|
||||
bootloader
|
||||
];
|
||||
in {
|
||||
imports = modules;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user