diff options
Diffstat (limited to 'hosts/common/optional/services')
| -rw-r--r-- | hosts/common/optional/services/dhcp.nix | 9 | ||||
| -rw-r--r-- | hosts/common/optional/services/nolid.nix | 8 | ||||
| -rw-r--r-- | hosts/common/optional/services/nsd/bitgnome.net.zone | 8 | ||||
| -rw-r--r-- | hosts/common/optional/services/openssh.nix | 3 | ||||
| -rw-r--r-- | hosts/common/optional/services/wayland.nix | 95 | ||||
| -rw-r--r-- | hosts/common/optional/services/xorg.nix | 101 | 
6 files changed, 164 insertions, 60 deletions
| diff --git a/hosts/common/optional/services/dhcp.nix b/hosts/common/optional/services/dhcp.nix index 3eed193..2492d05 100644 --- a/hosts/common/optional/services/dhcp.nix +++ b/hosts/common/optional/services/dhcp.nix @@ -7,10 +7,10 @@        "tftp/undionly.kpxe".source = "${pkgs.ipxe}/undionly.kpxe";      }; -    systemPackages = with pkgs; [ -      ipxe -      tftp-hpa -      wol +    systemPackages = [ +      pkgs.ipxe +      pkgs.tftp-hpa +      pkgs.wol      ];    }; @@ -103,6 +103,7 @@              ({ hw-address = "38:f3:ab:59:06:e0"; ip-address = "192.168.1.12"; }) # saturn              ({ hw-address = "8c:8c:aa:4e:fc:aa"; ip-address = "192.168.1.13"; }) # uranus              ({ hw-address = "38:f3:ab:59:08:10"; ip-address = "192.168.1.14"; }) # neptune +            ({ hw-address = "e8:8d:a6:e2:2a:85"; ip-address = "192.168.1.16"; }) # deck              ({ hw-address = "7c:b5:66:65:e2:9e"; ip-address = "192.168.1.17"; }) # ginaz              ({ hw-address = "00:05:cd:72:92:b0"; ip-address = "192.168.1.19"; }) # onkyo              ({ hw-address = "74:29:af:6f:20:ed"; ip-address = "192.168.1.20"; }) # brother diff --git a/hosts/common/optional/services/nolid.nix b/hosts/common/optional/services/nolid.nix index db868fe..7346c26 100644 --- a/hosts/common/optional/services/nolid.nix +++ b/hosts/common/optional/services/nolid.nix @@ -1,7 +1,7 @@  { -  services.logind = { -    lidSwitch = "ignore"; -    lidSwitchDocked = "ignore"; -    lidSwitchExternalPower = "ignore"; +  services.logind.settings.Login = { +    HandleLidSwitch = "ignore"; +    HandleLidSwitchDocked = "ignore"; +    HandleLidSwitchExternalPower = "ignore";    };  } diff --git a/hosts/common/optional/services/nsd/bitgnome.net.zone b/hosts/common/optional/services/nsd/bitgnome.net.zone index 038a860..a4eb4b6 100644 --- a/hosts/common/optional/services/nsd/bitgnome.net.zone +++ b/hosts/common/optional/services/nsd/bitgnome.net.zone @@ -3,7 +3,7 @@ $ORIGIN bitgnome.net.  $TTL 1h  @			in	soa	ns.bitgnome.net. nipsy.bitgnome.net. ( -	2025033101	; serial +	2025102301	; serial  	1d		; refresh  	2h		; retry  	4w		; expire @@ -29,7 +29,7 @@ $TTL 1h  ; name servers  ns			in	a	5.161.149.85  ns			in	aaaa	2a01:4ff:f0:e164::1 -ns2			in	a	67.5.119.0 +ns2			in	a	67.5.122.223  ; srv records  _xmpp-client._tcp	5m	in	srv	0 0 5222 bitgnome.net. @@ -67,10 +67,10 @@ mta-sts		5m	in	cname	@  ;royder			in	cname	@  ; external machines -arrakis		1m	in	a	67.5.119.0 +arrakis		1m	in	a	67.5.122.223  ;darkstar	1m	in	a	66.69.213.114  ;nb		1m	in	a	67.10.209.108  ;terraria	1m	in	a	128.83.27.4  ;caladan		1m	in	a	104.130.129.241  ;caladan		1m	in	aaaa	2001:4800:7818:101:be76:4eff:fe03:db44 -darkstar	1m	in	a	67.5.119.0 +darkstar	1m	in	a	67.5.122.223 diff --git a/hosts/common/optional/services/openssh.nix b/hosts/common/optional/services/openssh.nix index 424d3bf..8964ece 100644 --- a/hosts/common/optional/services/openssh.nix +++ b/hosts/common/optional/services/openssh.nix @@ -1,4 +1,7 @@ +{ pkgs, ... }:  { +  programs.ssh.package = pkgs.master.openssh_10_2; +    services.openssh = {      enable = true;      settings = { diff --git a/hosts/common/optional/services/wayland.nix b/hosts/common/optional/services/wayland.nix new file mode 100644 index 0000000..493e0e4 --- /dev/null +++ b/hosts/common/optional/services/wayland.nix @@ -0,0 +1,95 @@ +{ config, lib, pkgs, ... }: +{ +  environment.systemPackages = [ +    pkgs.chafa +    pkgs.evince +    pkgs.feh +    pkgs.gcr +    #pkgs.geeqie +    pkgs.ghostty +    pkgs.gimp3 +    #pkgs.gimp-with-plugins +    pkgs.google-chrome +    pkgs.grim +    pkgs.gv +    pkgs.inkscape +    pkgs.kdePackages.okular +    pkgs.libreoffice +    pkgs.libva-utils +    pkgs.mako +    pkgs.mangohud +    pkgs.mesa-demos +    pkgs.mpv +    pkgs.polkit_gnome +    pkgs.rdesktop +    pkgs.read-edid +    pkgs.slurp +    pkgs.st +    pkgs.swayimg +    pkgs.sxiv +    #pkgs.tigervnc +    #pkgs.turbovnc +    pkgs.vdpauinfo +    pkgs.vlc +    pkgs.vulkan-tools +    pkgs.wireshark +    pkgs.wl-clipboard +    pkgs.wlvncc +    #pkgs.x11vnc +    pkgs.xclip +    pkgs.xdotool +    pkgs.xorg.appres +    pkgs.xorg.editres +    pkgs.xorg.xdpyinfo +    pkgs.xorg.xev +    pkgs.xscreensaver +    pkgs.xsnow +    pkgs.xterm +  ]; + +  programs = { +    firefox = { +      enable = true; +      #package = pkgs.master.firefox; +    }; + +    gamemode.enable = true; + +    steam.gamescopeSession.enable = true; + +    sway = { +      enable = true; +      wrapperFeatures.gtk = true; +    }; +  }; + +  security = { +    pam = { +      loginLimits = [ +        { domain = "@users"; item = "rtprio"; type = "-"; value = 1; } +      ]; +    }; +  }; + +  services = { +    blueman.enable = true; +    libinput.enable = true; +    printing.enable = true; +  }; + +  systemd = { +    user.services.polkit-gnome-authentication-agent-1 = { +      description = "polkit-gnome-authentication-agent-1"; +      wantedBy = [ "graphical-session.target" ]; +      wants = [ "graphical-session.target" ]; +      after = [ "graphical-session.target" ]; +      serviceConfig = { +          Type = "simple"; +          ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; +          Restart = "on-failure"; +          RestartSec = 1; +          TimeoutStopSec = 10; +        }; +    }; +  }; +} diff --git a/hosts/common/optional/services/xorg.nix b/hosts/common/optional/services/xorg.nix index 7dccdd3..d45ebb7 100644 --- a/hosts/common/optional/services/xorg.nix +++ b/hosts/common/optional/services/xorg.nix @@ -1,50 +1,48 @@ -{ pkgs, ... }: +{ config, lib, pkgs, ... }:  { -  #environment.systemPackages = builtins.attrValues { -  #  inherit (pkgs) -  environment.systemPackages = with pkgs; [ -    chafa -    evince -    feh -    gcr -    geeqie -    ghostty -    gimp -    #gimp-with-plugins -    google-chrome -    gv -    inkscape -    libreoffice -    libva-utils -    mesa-demos -    mpv -    polkit_gnome -    rdesktop -    read-edid -    st -    sxiv -    tigervnc -    turbovnc -    vdpauinfo -    vlc -    vulkan-tools -    wireshark -    x11vnc -    xclip -    xdotool -    xorg.appres -    xorg.editres -    xorg.xdpyinfo -    xorg.xev -    xscreensaver -    xsnow -    xterm#; +  environment.systemPackages = [ +    pkgs.chafa +    pkgs.evince +    pkgs.feh +    pkgs.gcr +    #pkgs.master.geeqie +    pkgs.ghostty +    pkgs.gimp3 +    #pkgs.gimp-with-plugins +    pkgs.google-chrome +    pkgs.gv +    pkgs.inkscape +    pkgs.kdePackages.okular +    pkgs.libreoffice +    pkgs.libva-utils +    pkgs.mesa-demos +    pkgs.mpv +    pkgs.polkit_gnome +    pkgs.rdesktop +    pkgs.read-edid +    pkgs.st +    pkgs.sxiv +    #pkgs.tigervnc +    pkgs.turbovnc +    pkgs.vdpauinfo +    pkgs.vlc +    pkgs.vulkan-tools +    pkgs.wireshark +    pkgs.x11vnc +    pkgs.xclip +    pkgs.xdotool +    pkgs.xorg.appres +    pkgs.xorg.editres +    pkgs.xorg.xdpyinfo +    pkgs.xorg.xev +    pkgs.xscreensaver +    pkgs.xsnow +    pkgs.xterm    ]; -  #};    programs.firefox = {      enable = true; -    package = pkgs.master.firefox; +    #package = pkgs.master.firefox;    };    security.polkit = { @@ -69,17 +67,24 @@    services = {      blueman.enable = true; -    displayManager.defaultSession = "xsession"; +    displayManager = lib.mkIf (config.networking.hostName != "fangorn") { +      defaultSession = "xsession"; +    };      libinput.enable = true;      picom.enable = true;      printing.enable = true;      xserver = { -      displayManager.lightdm = { -        enable = true; -        extraSeatDefaults = ''greeter-hide-users=true''; -      }; +      displayManager.lightdm = lib.mkMerge [ +        (lib.mkIf (config.networking.hostName == "fangorn") { +          enable = true; +        }) +        (lib.mkIf (config.networking.hostName != "fangorn") { +          enable = true; +          extraSeatDefaults = ''greeter-hide-users=true''; +        }) +      ]; -      displayManager.session = [ +      displayManager.session = lib.mkIf (config.networking.hostName != "fangorn") [          {            manage = "desktop";            name = "xsession"; | 
