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