diff options
Diffstat (limited to 'configuration/tarrel/default.nix')
-rw-r--r-- | configuration/tarrel/default.nix | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/configuration/tarrel/default.nix b/configuration/tarrel/default.nix new file mode 100644 index 0000000..ca573fa --- /dev/null +++ b/configuration/tarrel/default.nix @@ -0,0 +1,82 @@ +{ pkgs, inputs, config, ... }: +{ + imports = [ + ./hardware-configuration.nix + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + environment.systemPackages = with pkgs; [ + zola + discord + ]; + + hardware.graphics.enable = true; + services.xserver.videoDrivers = ["nvidia"]; + hardware.nvidia = { + modesetting.enable = true; + nvidiaSettings = true; + nvidiaPersistenced = true; + open = true; + + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + + security.rtkit.enable = true; + + time.timeZone = "Europe/Amsterdam"; + + i18n.defaultLocale = "en_US.UTF-8"; + i18n.extraLocaleSettings = { + LC_ADDRESS = "nl_NL.UTF-8"; + LC_IDENTIFICATION = "nl_NL.UTF-8"; + LC_MEASUREMENT = "nl_NL.UTF-8"; + LC_MONETARY = "nl_NL.UTF-8"; + LC_NAME = "nl_NL.UTF-8"; + LC_NUMERIC = "nl_NL.UTF-8"; + LC_PAPER = "nl_NL.UTF-8"; + LC_TELEPHONE = "nl_NL.UTF-8"; + LC_TIME = "nl_NL.UTF-8"; + }; + + console.keyMap = "us-acentos"; + + programs.zsh.enable = true; + + users.users.jras = { + isNormalUser = true; + description = "Jasper"; + extraGroups = [ "networkmanager" "wheel" "audio" ]; + shell = pkgs.zsh; + }; + + security.sudo.execWheelOnly = true; + security.sudo.wheelNeedsPassword = false; + + environment.sessionVariables = { + TERMINAL = "alacritty"; + EDITOR = "helix"; + }; + + environment.pathsToLink = [ "/libexec" ]; + + networking.hostName = "tarrel"; + networking.networkmanager.enable = true; + + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.jras = import ../../home-manager/entrypoints/personal.nix; + extraSpecialArgs = { inherit inputs; monitor-names = ["DP-2" "HDMI-A-1"]; }; + }; + + system.stateVersion = "24.05"; # Did you read the comment? + + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; +} |