initial config commit
This commit is contained in:
parent
f8980b6805
commit
f3dc1d15ff
79 changed files with 2725 additions and 0 deletions
42
hosts/server/configuration.nix
Normal file
42
hosts/server/configuration.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
pkgs,
|
||||
hostName,
|
||||
inputs,
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../modules/nixos/default.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# reusable modules
|
||||
|
||||
borgbackup-srv.enable = true;
|
||||
intel-gpu.enable = true;
|
||||
server.enable = true;
|
||||
|
||||
# config
|
||||
|
||||
networking.hostName = "${hostName}";
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
users = {
|
||||
groups.${userName} = { };
|
||||
users.${userName} = {
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
home = "/home/srv";
|
||||
isNormalUser = true;
|
||||
shell = pkgs.bash;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue