mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +01:00
profiles: Introduce core, server and workstation profiles
This commit is contained in:
parent
1c0f293c3d
commit
100f02a2d8
15 changed files with 94 additions and 163 deletions
|
|
@ -1,25 +1,16 @@
|
|||
{ config, inputs, ... }:
|
||||
{ config, self, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./disko.nix
|
||||
inputs.disko.nixosModules.default
|
||||
];
|
||||
imports = [ self.nixosModules.profile-server ];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
custom = {
|
||||
persistence.enable = true;
|
||||
|
||||
sops.enable = true;
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
|
||||
networking = {
|
||||
overlay = {
|
||||
address = "10.254.250.5";
|
||||
isLighthouse = true;
|
||||
role = "server";
|
||||
};
|
||||
underlay = {
|
||||
interface = "enp1s0";
|
||||
|
|
@ -29,15 +20,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
auto-gc = {
|
||||
enable = true;
|
||||
onlyCleanRoots = true;
|
||||
};
|
||||
comin.enable = true;
|
||||
sshd.enable = true;
|
||||
dns.enable = true;
|
||||
};
|
||||
services.dns.enable = true;
|
||||
|
||||
web-services =
|
||||
let
|
||||
|
|
@ -77,11 +60,6 @@
|
|||
enable = true;
|
||||
domain = "logs.${privateDomain}";
|
||||
};
|
||||
|
||||
alloy = {
|
||||
enable = true;
|
||||
domain = "alloy.${config.networking.hostName}.${privateDomain}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue