| ... | ... | @@ -1,25 +1,24 @@ |
| 1 | 1 | #<BS> Edit this configuration file to define what should be installed on |
| 2 | 2 | # your system. Help is available in the configuration.nix(5) man page |
| 3 | 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | | |
| 5 | | { config, pkgs, ... }: |
| 6 | | |
| 7 | 4 | { |
| 8 | | nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
| 5 | config, |
| 6 | pkgs, |
| 7 | ... |
| 8 | }: { |
| 9 | nix.settings.experimental-features = ["nix-command" "flakes"]; |
| 9 | 10 | programs.hyprland.enable = true; |
| 10 | | programs.zsh = { |
| 11 | | 	enable = true; |
| 12 | | 	ohMyZsh = { |
| 13 | | 		enable = true; |
| 14 | | 		plugins = ["git" "zsh-autosuggestions" "zsh-autocomplete" "sudo"]; |
| 15 | | 		theme = "powerlevel10k"; |
| 16 | | }; |
| 17 | | }; |
| 18 | | |
| 19 | | imports = |
| 20 | | [ # Include the results of the hardware scan. |
| 21 | | ./hardware-configuration.nix |
| 22 | | ]; |
| 11 | |
| 12 | programs.fish.enable = true; |
| 13 | |
| 14 | fonts.packages = with pkgs; [ |
| 15 | (nerdfonts.override {fonts = ["FiraCode" "Iosevka"];}) |
| 16 | ]; |
| 17 | |
| 18 | imports = [ |
| 19 | # Include the results of the hardware scan. |
| 20 | ./hardware-configuration.nix |
| 21 | ]; |
| 23 | 22 | |
| 24 | 23 | # Enable OpenGL |
| 25 | 24 | hardware.opengl = { |
| ... | ... | @@ -30,7 +29,6 @@ |
| 30 | 29 | services.xserver.videoDrivers = ["nvidia"]; |
| 31 | 30 | |
| 32 | 31 | hardware.nvidia = { |
| 33 | | |
| 34 | 32 | # Modesetting is required. |
| 35 | 33 | modesetting.enable = true; |
| 36 | 34 | |
| ... | ... | @@ -42,15 +40,15 @@ |
| 42 | 40 | |
| 43 | 41 | # Use the NVidia open source kernel module (not to be confused with the |
| 44 | 42 | # independent third-party "nouveau" open source driver). |
| 45 | | # Support is limited to the Turing and later architectures. Full list of |
| 46 | | # supported GPUs is at: |
| 47 | | # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus |
| 43 | # Support is limited to the Turing and later architectures. Full list of |
| 44 | # supported GPUs is at: |
| 45 | # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus |
| 48 | 46 | # Only available from driver 515.43.04+ |
| 49 | 47 | # Currently alpha-quality/buggy, so false is currently the recommended setting. |
| 50 | 48 | open = false; |
| 51 | 49 | |
| 52 | 50 | # Enable the Nvidia settings menu, |
| 53 | | 	# accessible via `nvidia-settings`. |
| 51 | # accessible via `nvidia-settings`. |
| 54 | 52 | nvidiaSettings = true; |
| 55 | 53 | |
| 56 | 54 | # Optionally, you may need to select the appropriate driver version for your specific GPU. |
| ... | ... | @@ -61,16 +59,16 @@ |
| 61 | 59 | #boot.loader.efi.canTouchEfiVariables = true; |
| 62 | 60 | |
| 63 | 61 | boot.loader = { |
| 64 | | 	efi = { |
| 65 | | 	 canTouchEfiVariables = true; |
| 62 | efi = { |
| 63 | canTouchEfiVariables = true; |
| 66 | 64 | # assuming /boot is the mount point of the EFI partition in NixOS (as the installation section recommends). |
| 67 | 65 | efiSysMountPoint = "/boot"; |
| 68 | | 	}; |
| 69 | | 	grub = { |
| 70 | | 	enable = true; |
| 71 | | 	devices = [ "nodev" ]; |
| 72 | | 	useOSProber = true; |
| 73 | | 	}; |
| 66 | }; |
| 67 | grub = { |
| 68 | enable = true; |
| 69 | devices = ["nodev"]; |
| 70 | useOSProber = true; |
| 71 | }; |
| 74 | 72 | }; |
| 75 | 73 | networking.hostName = "nixos"; # Define your hostname. |
| 76 | 74 | # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. |
| ... | ... | @@ -137,24 +135,26 @@ |
| 137 | 135 | # services.xserver.libinput.enable = true; |
| 138 | 136 | |
| 139 | 137 | # Define a user account. Don't forget to set a password with ‘passwd’. |
| 138 | users.defaultUserShell = pkgs.fish; |
| 140 | 139 | users.users.nmarks = { |
| 141 | 140 | isNormalUser = true; |
| 142 | 141 | description = "Natalie Marks"; |
| 143 | | extraGroups = [ "networkmanager" "wheel" ]; |
| 142 | extraGroups = ["networkmanager" "wheel"]; |
| 144 | 143 | packages = with pkgs; [ |
| 145 | 144 | firefox |
| 146 | 145 | kate |
| 147 | 146 | vim |
| 148 | 147 | discord |
| 149 | 148 | kitty |
| 150 | | |
| 151 | | # thunderbird |
| 149 | lua-language-server |
| 150 | # thunderbird |
| 152 | 151 | ]; |
| 153 | 152 | }; |
| 153 | |
| 154 | 154 | programs.neovim = { |
| 155 | | 	enable = true; |
| 156 | | 	defaultEditor = true; |
| 157 | | }; |
| 155 | enable = true; |
| 156 | defaultEditor = true; |
| 157 | }; |
| 158 | 158 | environment.variables.EDITOR = "nvim"; |
| 159 | 159 | |
| 160 | 160 | # Allow unfree packages |
| ... | ... | @@ -163,18 +163,33 @@ |
| 163 | 163 | # List packages installed in system profile. To search, run: |
| 164 | 164 | # $ nix search wget |
| 165 | 165 | environment.systemPackages = with pkgs; [ |
| 166 | fish |
| 166 | 167 | vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. |
| 167 | 168 | wget |
| 168 | 169 | git |
| 170 | unzip |
| 171 | ripgrep |
| 172 | clang |
| 173 | fd |
| 174 | cargo |
| 175 | python3 |
| 176 | python311Packages.pynvim |
| 177 | python311Packages.pip |
| 178 | steam |
| 179 | ruby |
| 180 | julia |
| 181 | xclip |
| 182 | nodePackages.npm |
| 183 | go |
| 169 | 184 | ]; |
| 170 | 185 | |
| 171 | 186 | # Some programs need SUID wrappers, can be configured further or are |
| 172 | 187 | # started in user sessions. |
| 173 | | programs.mtr.enable = true; |
| 174 | | programs.gnupg.agent = { |
| 175 | | enable = true; |
| 176 | | enableSSHSupport = true; |
| 177 | | }; |
| 188 | programs.mtr.enable = true; |
| 189 | programs.gnupg.agent = { |
| 190 | enable = true; |
| 191 | enableSSHSupport = true; |
| 192 | }; |
| 178 | 193 | |
| 179 | 194 | # List services that you want to enable: |
| 180 | 195 | |
| ... | ... | @@ -194,5 +209,4 @@ |
| 194 | 209 | # Before changing this value read the documentation for this option |
| 195 | 210 | # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 196 | 211 | system.stateVersion = "23.05"; # Did you read the comment? |
| 197 | | |
| 198 | 212 | } |