modularized deployments

This commit is contained in:
2026-08-14 10:07:01 -05:00
parent efad2c82e8
commit a058a8cddc
6 changed files with 99 additions and 26 deletions

73
demilich/services.nix Normal file
View File

@@ -0,0 +1,73 @@
{ config, ... }:
{
systemd = {
user = {
services = {
niri = {
enableDefaultPath = false;
};
};
};
services = {
tailscaled = {
serviceConfig = {
Environment = [
"TS_DEBUG_FIREWALL_MODE=nftables"
];
};
};
NetworkManager-wait-online = {
enable = false;
};
};
network = {
wait-online = {
enable = false;
};
};
};
xdg.portal.config.niri = {
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
};
services = {
tailscale = {
enable = true;
};
displayManager = {
enable = true;
lemurs = {
enable = true;
};
};
xserver = {
enable = true;
xkb.options = "ctrl:nocaps";
};
pipewire = {
enable = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
libinput.enable = true;
printing.enable = true;
greetd = {
enable = true;
settings = {
default_session = {
command = "${config.programs.niri.package}/bin/niri-session";
user = "stobbsm";
};
};
};
gnome = {
gnome-keyring = {
enable = true;
};
};
};
}