diff options
Diffstat (limited to 'services.nix')
-rw-r--r-- | services.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/services.nix b/services.nix new file mode 100644 index 0000000..02947e1 --- /dev/null +++ b/services.nix @@ -0,0 +1,51 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ pkgs, ... }: + +{ + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + + services.displayManager.defaultSession = "none+i3"; + services.displayManager.autoLogin.enable = true; + services.displayManager.autoLogin.user = "jras"; + services.xserver = { + enable = true; + videoDrivers = ["nvidia"]; + windowManager.i3 = { enable = true; + extraPackages = with pkgs; [ + dmenu + i3status + i3lock + i3blocks + ]; + }; + xkb = { + layout = "us"; + variant = "intl"; + }; + }; + + location.latitude = 52.49931951214914; + location.longitude = 4.816707180055415; + + services.redshift = { + enable = true; + + temperature = { + day = 5500; + night = 4500; + }; + + brightness = { + day = "0.8"; + night = "0.7"; + }; + }; +} |