Restructure NixOS host configuration files

This commit is contained in:
Oliver Davies 2025-01-04 17:51:00 +00:00
parent 9ea5655669
commit f92ad2b5ab
10 changed files with 70 additions and 114 deletions

View file

@ -73,7 +73,7 @@
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
./nix/hosts/lemp11 ./nix/hosts/lemp11/configuration.nix
]; ];
}; };
@ -87,7 +87,7 @@
modules = [ modules = [
agenix.nixosModules.default agenix.nixosModules.default
./nix/hosts/nixedo ./nix/hosts/nixedo/configuration.nix
]; ];
}; };
@ -102,7 +102,7 @@
nixos-hardware.nixosModules.common-gpu-intel nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.lenovo-thinkpad-t490 nixos-hardware.nixosModules.lenovo-thinkpad-t490
./nix/hosts/t490 ./nix/hosts/t490/configuration.nix
]; ];
}; };
@ -120,7 +120,7 @@
disko.nixosModules.disko disko.nixosModules.disko
nixos-wsl.nixosModules.default nixos-wsl.nixosModules.default
./nix/hosts/PW05CH3L ./nix/hosts/PW05CH3L/configuration.nix
]; ];
}; };

View file

@ -1,6 +1,24 @@
{ inputs, ... }: { inputs, username, ... }:
{ {
imports = [
../common
../../users/opdavies
./configuration.nix
];
features = {
cli = {
docker.enable = true;
};
};
wsl = {
enable = true;
defaultUser = username;
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nix = { nix = {

View file

@ -1,21 +0,0 @@
{ username, ... }:
{
imports = [
../common
../../users/opdavies
./configuration.nix
];
features = {
cli = {
docker.enable = true;
};
};
wsl = {
enable = true;
defaultUser = username;
};
}

View file

@ -15,6 +15,8 @@
./hardware-configuration.nix ./hardware-configuration.nix
../common
../../users/opdavies
../../users/eric ../../users/eric
../../users/luke ../../users/luke
]; ];

View file

@ -1,32 +0,0 @@
{ ... }:
{
features = {
cli = {
docker.enable = true;
};
desktop = {
autorandr.enable = true;
gaming.enable = true;
peek.enable = true;
};
homelab = {
forgejo.enable = true;
gitea.enable = true;
immich.enable = true;
jellyfin.enable = true;
paperless.enable = true;
pihole.enable = true;
tubearchivist-container.enable = true;
};
};
imports = [
../common
../../users/opdavies
./configuration.nix
];
}

View file

@ -6,11 +6,35 @@
{ {
imports = [ imports = [
../common
../../users/opdavies
./hardware-configuration.nix ./hardware-configuration.nix
./secrets.nix
./modules/acme.nix ./modules/acme.nix
]; ];
features = {
cli = {
docker.enable = true;
};
homelab = {
audiobookshelf.enable = true;
beaverhabits.enable = true;
forgejo.enable = true;
freshrss.enable = true;
gitea.enable = true;
immich.enable = true;
jellyfin.enable = true;
paperless.enable = true;
pihole.enable = true;
tubearchivist-container.enable = true;
vaultwarden.enable = true;
};
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
boot.loader = { boot.loader = {
@ -34,4 +58,12 @@
]; ];
services.caddy.enable = true; services.caddy.enable = true;
programs.dconf.enable = true;
services.logind.lidSwitchExternalPower = "ignore";
age.identityPaths = [
"/home/opdavies/.ssh/id_rsa"
];
} }

View file

@ -1,30 +0,0 @@
{
features = {
cli = {
docker.enable = true;
};
homelab = {
audiobookshelf.enable = true;
beaverhabits.enable = true;
forgejo.enable = true;
freshrss.enable = true;
gitea.enable = true;
immich.enable = true;
jellyfin.enable = true;
paperless.enable = true;
pihole.enable = true;
tubearchivist-container.enable = true;
vaultwarden.enable = true;
};
};
imports = [
../common
../../users/opdavies
./configuration.nix
./secrets.nix
./extra.nix
];
}

View file

@ -1,9 +0,0 @@
{
programs.dconf.enable = true;
services.logind.lidSwitchExternalPower = "ignore";
age.identityPaths = [
"/home/opdavies/.ssh/id_rsa"
];
}

View file

@ -8,8 +8,21 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../common
../../users/opdavies
]; ];
features = {
desktop = {
autorandr.enable = true;
gaming.enable = true;
i3.enable = true;
peek.enable = true;
};
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
boot = { boot = {

View file

@ -1,17 +0,0 @@
{
imports = [
../common
../../users/opdavies
./configuration.nix
];
features = {
desktop = {
autorandr.enable = true;
gaming.enable = true;
i3.enable = true;
peek.enable = true;
};
};
}