Add minimal modular setup

This commit is contained in:
muon 2024-05-28 15:55:10 +00:00
commit e81d8c9be4
19 changed files with 351 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{ pkgs, lib, ... }: {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View file

@ -0,0 +1,7 @@
{ pkgs, lib, ... }: {
imports = [
./boot.nix
./network.nix
./user.nix
];
}

View file

@ -0,0 +1,5 @@
{ pkgs, lib, ... }: {
config = {
networking.networkmanager.enable = true;
};
}

View file

@ -0,0 +1,16 @@
{ pkgs, lib, config, ... }: {
options = {
mods.user.name = lib.mkOption {
default = "muon";
description = "username of the main system user";
};
};
config = {
users.users.${config.mods.user.name} = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "changeme";
};
};
}