|
| 1 | +# Edit this configuration file to define what should be installed on |
| 2 | +# your system. Help is available in the configuration.nix(5) man page |
| 3 | +# and in the NixOS manual (accessible by running `nixos-help`). |
| 4 | + |
| 5 | +{ config, lib, pkgs, ... }: |
| 6 | + |
| 7 | +{ |
| 8 | + imports = |
| 9 | + [ # Include the results of the hardware scan. |
| 10 | + ./hardware-configuration.nix |
| 11 | + #./home-manager/home.nix |
| 12 | +#<home-manager/nixos> |
| 13 | + ]; |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + nixpkgs.config.permittedInsecurePackages = [ |
| 18 | + "python-2.7.18.6" |
| 19 | + ]; |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + # Use the systemd-boot EFI boot loader. |
| 26 | + boot.loader.systemd-boot.enable = true; |
| 27 | + boot.loader.efi.canTouchEfiVariables = true; |
| 28 | + nixpkgs.config.allowUnfree = true; |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + networking.hostName = "nixos"; # Define your hostname. |
| 35 | + # Pick only one of the below networking options. |
| 36 | + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. |
| 37 | + networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. |
| 38 | + |
| 39 | + # Set your time zone. |
| 40 | + # time.timeZone = "Europe/Amsterdam"; |
| 41 | + |
| 42 | + # Configure network proxy if necessary |
| 43 | + # networking.proxy.default = "http://user:password@proxy:port/"; |
| 44 | + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |
| 45 | + |
| 46 | + # Select internationalisation properties. |
| 47 | + # i18n.defaultLocale = "en_US.UTF-8"; |
| 48 | + # console = { |
| 49 | + # font = "Lat2-Terminus16"; |
| 50 | + # keyMap = "us"; |
| 51 | + # useXkbConfig = true; # use xkbOptions in tty. |
| 52 | + # }; |
| 53 | + |
| 54 | +#----- out --- |
| 55 | + |
| 56 | + |
| 57 | +#------- |
| 58 | +services.xserver = { |
| 59 | + # Use the X11 Display Server |
| 60 | + enable = true; |
| 61 | + layout = "us"; |
| 62 | + # Enable Window Managers |
| 63 | + windowManager.awesome = { |
| 64 | +enable = true; |
| 65 | +#luaModules = with pkgs.luaPackages; [ |
| 66 | +#luadbi-mysql |
| 67 | + |
| 68 | +#luadbi-mysql |
| 69 | + |
| 70 | + }; |
| 71 | + # Set and configure login manager |
| 72 | + displayManager = { |
| 73 | + lightdm.enable = true; |
| 74 | + |
| 75 | + autoLogin = { |
| 76 | + user = "knighty"; |
| 77 | + }; |
| 78 | + }; |
| 79 | +}; |
| 80 | + |
| 81 | +#services.xserver = { |
| 82 | + # layout = "us"; |
| 83 | + #xkbVariant = "dvp"; |
| 84 | +#}; |
| 85 | + |
| 86 | + |
| 87 | +# }; |
| 88 | + |
| 89 | + |
| 90 | +#--- out2 ---- |
| 91 | + |
| 92 | + # Enable the X11 windowing system. |
| 93 | + #services.xserver.enable = true; |
| 94 | + |
| 95 | + |
| 96 | + # Enable the Plasma 5 Desktop Environment. |
| 97 | + #services.xserver.displayManager.sddm.enable = false; |
| 98 | + services.xserver.desktopManager.gnome.enable = true; |
| 99 | + services.xserver.displayManager.defaultSession = "none+awesome"; |
| 100 | + |
| 101 | + |
| 102 | +#console = { |
| 103 | + # useXkbConfig = true; # use xkbOptions in tty. |
| 104 | +#}; |
| 105 | + |
| 106 | +services.xserver.libinput.enable = true; |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + # Configure keymap in X11 |
| 111 | + #services.xserver.layout = "us"; |
| 112 | + services.xserver.xkbOptions = "eurosign:e,caps:escape"; |
| 113 | + |
| 114 | + # Enable CUPS to print documents. |
| 115 | + # services.printing.enable = true; |
| 116 | + |
| 117 | + # Enable sound. |
| 118 | + sound.enable = true; |
| 119 | + hardware.pulseaudio.enable = true; |
| 120 | + |
| 121 | + # Enable touchpad support (enabled default in most desktopManager). |
| 122 | + # services.xserver.libinput.enable = true; |
| 123 | + |
| 124 | + # Define a user account. Don't forget to set a password with ‘passwd’. |
| 125 | + users.users.knighty = { |
| 126 | + isNormalUser = true; |
| 127 | + extraGroups = [ "wheel" "kvm" "input" "disk" "libvirtd" "networkmanager" ]; # Enable ‘sudo’ for the user. |
| 128 | + packages = with pkgs; [ |
| 129 | + firefox |
| 130 | + tree |
| 131 | +alacritty |
| 132 | + ]; |
| 133 | + }; |
| 134 | + |
| 135 | + |
| 136 | + # List packages installed in system profile. To search, run: |
| 137 | + # $ nix search wget |
| 138 | + environment.systemPackages = with pkgs; [ |
| 139 | + #vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. |
| 140 | +#luarocks |
| 141 | +#luadbi-mysqly |
| 142 | +#luajitPackages.luadbi-mysql |
| 143 | +# awesome-luajit-git |
| 144 | + feh |
| 145 | + pcmanfm |
| 146 | + tmux |
| 147 | + xclip |
| 148 | + xss-lock |
| 149 | +awesome |
| 150 | + wget |
| 151 | + alacritty |
| 152 | +python311Packages.pip |
| 153 | +python311Packages.awesomeversion |
| 154 | +python311Packages.awesome-slugify |
| 155 | +networkmanager |
| 156 | +#python311Packages |
| 157 | +#qtile |
| 158 | +#------------------------ |
| 159 | +asusctl |
| 160 | +#rPackages.asus |
| 161 | +#rPackages.PlasmaMutationDetector2 |
| 162 | +supergfxctl |
| 163 | +#rPackages.phantasus |
| 164 | +python311Packages.aioasuswrt |
| 165 | +# vim |
| 166 | + wget |
| 167 | +w3m |
| 168 | +dmenu |
| 169 | + neofetch |
| 170 | + neovim |
| 171 | + autojump |
| 172 | + starship |
| 173 | +firefox |
| 174 | + brave |
| 175 | + bspwm |
| 176 | + cargo |
| 177 | + celluloid |
| 178 | + chatterino2 |
| 179 | + clang-tools_9 |
| 180 | +# davinci-resolve |
| 181 | + dwm |
| 182 | + dunst |
| 183 | + elinks |
| 184 | + eww |
| 185 | + feh |
| 186 | + flameshot |
| 187 | + flatpak |
| 188 | + fontconfig |
| 189 | +blueman |
| 190 | +freetype |
| 191 | + gcc |
| 192 | + gh |
| 193 | + gimp |
| 194 | + git |
| 195 | +# github-desktop |
| 196 | + gnugrep |
| 197 | + gnumake |
| 198 | + gparted |
| 199 | + hugo |
| 200 | + kitty |
| 201 | + libverto |
| 202 | + luarocks |
| 203 | + lutris |
| 204 | + mangohud |
| 205 | + neovim |
| 206 | + nfs-utils |
| 207 | + ninja |
| 208 | +nodejs |
| 209 | + nomacs |
| 210 | + openssl |
| 211 | + pavucontrol |
| 212 | + picom |
| 213 | + polkit_gnome |
| 214 | + powershell |
| 215 | + protonup-ng |
| 216 | + python311Full |
| 217 | + python.pkgs.pip |
| 218 | + qemu |
| 219 | + ripgrep |
| 220 | + rofi |
| 221 | +# steam |
| 222 | +# steam-run |
| 223 | + sxhkd |
| 224 | + st |
| 225 | + stdenv |
| 226 | + synergy |
| 227 | + swaycons |
| 228 | + terminus-nerdfont |
| 229 | + tldr |
| 230 | + trash-cli |
| 231 | + unzip |
| 232 | + variety |
| 233 | + virt-manager |
| 234 | + xclip |
| 235 | + xdg-desktop-portal-gtk |
| 236 | +]; |
| 237 | + |
| 238 | + # Some programs need SUID wrappers, can be configured further or are |
| 239 | + # started in user sessions. |
| 240 | + # programs.mtr.enable = true; |
| 241 | + # programs.gnupg.agent = { |
| 242 | + # enable = true; |
| 243 | + # enableSSHSupport = true; |
| 244 | + # }; |
| 245 | + |
| 246 | + # List services that you want to enable: |
| 247 | + |
| 248 | + # Enable the OpenSSH daemon. |
| 249 | + # services.openssh.enable = true; |
| 250 | + |
| 251 | + # Open ports in the firewall. |
| 252 | + # networking.firewall.allowedTCPPorts = [ ... ]; |
| 253 | + # networking.firewall.allowedUDPPorts = [ ... ]; |
| 254 | + # Or disable the firewall altogether. |
| 255 | + # networking.firewall.enable = false; |
| 256 | + |
| 257 | + # Copy the NixOS configuration file and link it from the resulting system |
| 258 | + # (/run/current-system/configuration.nix). This is useful in case you |
| 259 | + # accidentally delete configuration.nix. |
| 260 | + system.copySystemConfiguration = true; |
| 261 | + |
| 262 | + |
| 263 | + # This value determines the NixOS release from which the default |
| 264 | + # settings for stateful data, like file locations and database versions |
| 265 | + # on your system were taken. It's perfectly fine and recommended to leave |
| 266 | + # this value at the release version of the first install of this system. |
| 267 | + # Before changing this value read the documentation for this option |
| 268 | + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 269 | + system.stateVersion = "23.11"; # Did you read the comment? |
| 270 | + |
| 271 | + nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
| 272 | + |
| 273 | +} |
| 274 | + |
0 commit comments