mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add minimal modular setup
This commit is contained in:
commit
e81d8c9be4
19 changed files with 351 additions and 0 deletions
4
modules/nixos/core/boot.nix
Normal file
4
modules/nixos/core/boot.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
||||
7
modules/nixos/core/default.nix
Normal file
7
modules/nixos/core/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
imports = [
|
||||
./boot.nix
|
||||
./network.nix
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
5
modules/nixos/core/network.nix
Normal file
5
modules/nixos/core/network.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
config = {
|
||||
networking.networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
16
modules/nixos/core/user.nix
Normal file
16
modules/nixos/core/user.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue