diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/configuration.nix | 19 | ||||
-rw-r--r-- | nixos/fonts.nix | 29 | ||||
-rw-r--r-- | nixos/greetd-sway.nix | 10 | ||||
-rw-r--r-- | nixos/nvidia.nix | 4 | ||||
-rw-r--r-- | nixos/services/nginx.service.nix | 6 |
5 files changed, 67 insertions, 1 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index dde33e1..bfed15f 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -10,7 +10,10 @@ { imports = [ ./variables.nix - ./nvidia.nix + #./greetd-sway.nix + #./nvidia.nix + ./fonts.nix + ./services/nginx.service.nix ./hardware-configuration.nix ]; boot.loader = { @@ -31,6 +34,18 @@ ''; }; }; + services.displayManager.sddm = { + enable = true; + wayland.enable = true; + }; + systemd.user.services.kanshi = { + description = "kanshi daemon"; + serviceConfig = { + Type = "simple"; + ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file''; + }; + }; + security.polkit.enable = true; services.gnome.gnome-keyring.enable = true; programs.sway = { @@ -53,6 +68,7 @@ flake-registry = ""; nix-path = config.nix.nixPath; }; + channel.enable = false; registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs; nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs; }; @@ -79,6 +95,7 @@ PasswordAuthentication = false; }; }; + services.automatic-timezoned.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "24.05"; } diff --git a/nixos/fonts.nix b/nixos/fonts.nix new file mode 100644 index 0000000..968b101 --- /dev/null +++ b/nixos/fonts.nix @@ -0,0 +1,29 @@ +{pkgs, ...}: { + fonts.packages = with pkgs; [ + #helvetica-neue-lt-std + aileron + #corefonts + #vistafonts + #vistafonts-chs + noto-fonts + #noto-fonts-cjk + noto-fonts-emoji + #liberation_ttf + #mplus-outline-fonts.githubRelease + #dina-font + #proggyfonts + #glasstty-ttf + ( + nerdfonts.override { + fonts = [ + "FiraCode" + "IBMPlexMono" + #"IntelOneMono" + #"CascadiaMono" + #"CommitMono" + #"JetBrainsMono" + ]; + } + ) + ]; +} diff --git a/nixos/greetd-sway.nix b/nixos/greetd-sway.nix new file mode 100644 index 0000000..2177c38 --- /dev/null +++ b/nixos/greetd-sway.nix @@ -0,0 +1,10 @@ +{pkgs, config, lib, ...}: { + services.greetd = { + enable = true; + settings = { + default_session = { + command = "${pkgs.sway}/bin/sway"; + }; + }; + }; +} diff --git a/nixos/nvidia.nix b/nixos/nvidia.nix index e75a77a..6615468 100644 --- a/nixos/nvidia.nix +++ b/nixos/nvidia.nix @@ -14,6 +14,10 @@ }; }; }; + hardware.opengl = { + enable = true; + }; + services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia = { prime = { offload.enable = false; diff --git a/nixos/services/nginx.service.nix b/nixos/services/nginx.service.nix new file mode 100644 index 0000000..ae374c7 --- /dev/null +++ b/nixos/services/nginx.service.nix @@ -0,0 +1,6 @@ +{...}: +{ + services.nginx = { + enable = true; + }; +} |