diff options
Diffstat (limited to '')
-rw-r--r-- | common/common.nix | 5 | ||||
-rw-r--r-- | common/desktop.nix | 47 |
2 files changed, 35 insertions, 17 deletions
diff --git a/common/common.nix b/common/common.nix index b0aeb26..073b8c5 100644 --- a/common/common.nix +++ b/common/common.nix @@ -12,5 +12,10 @@ wget vim htop dnsutils inetutils iftop manpages ]; + # Select internationalisation properties. + console = { + font = "Lat2-Terminus16"; + keyMap = "de"; + }; } diff --git a/common/desktop.nix b/common/desktop.nix index f7d6b8f..8bc1968 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -14,28 +14,12 @@ virtualisation.podman.enable = true; - # Select internationalisation properties. - console = { - font = "Lat2-Terminus16"; - keyMap = "de"; - }; - # Enable CUPS to print documents. services.printing = { enable = true; drivers = [ pkgs.epson-escpr2 pkgs.epson-escpr ]; }; - - # Enable sound. - sound.enable = true; - hardware.pulseaudio.enable = true; - - # Enable the X11 windowing system. - # services.xserver.enable = true; - # services.xserver.layout = "de"; - # services.xserver.xkbOptions = "eurosign:e,caps:escape"; - users.mutableUsers = false; users.defaultUserShell = pkgs.fish; users.users.stuebinm = { @@ -46,7 +30,6 @@ useDefaultShell = true; }; - services.syncthing = { enable = true; user = "stuebinm"; @@ -59,4 +42,34 @@ "127.0.0.1" = [ "syncthing.localhost" ]; }; + # graphics and stuff + programs.light.enable = true; + programs.slock.enable = true; + + environment.systemPackages = with pkgs; [ + hikari fuzzel + ]; + + security.pam.services.hikari-unlocker.text = '' + auth include login + ''; + + services.greetd = { + enable = true; + settings.default_session = { + command = "${pkgs.greetd.greetd}/bin/agreety --cmd 'hikari -c ~/hikari.conf'"; + user = "stuebinm"; + }; + restart = false; + }; + hardware.opengl.enable = true; + fonts.enableDefaultFonts = true; + programs.xwayland.enable = false; + xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr ]; + xdg.portal.enable = true; + services.flatpak.enable = true; + + # Enable sound. + sound.enable = true; + hardware.pulseaudio.enable = true; } |