My dotfiles (written in Nix, btw!) ❄
at main 78 lines 2.1 kB view raw
1{ 2 pkgs, 3 systemSettings, 4 ... 5}: let 6 nvidia = 7 if builtins.elem "nvidia" systemSettings.videoDrivers 8 then ./nvidia.nix 9 else ./none.nix; 10in { 11 imports = [ 12 ./adb.nix 13 ./bluetooth.nix 14 ./bootloader.nix 15 ./cloudflare-zero-trust.nix 16 ./disko.nix 17 ./docker.nix 18 ./flatpak.nix 19 ./fonts.nix 20 ./hardware-configuration.nix 21 ./locale.nix 22 ./locate.nix 23 ./networking.nix 24 ./nix.nix 25 ./postgresql.nix 26 ./qemu.nix 27 ./sound.nix 28# ./swap.nix 29 ./user.nix 30 ./wireshark.nix 31 ./themes.nix 32 ./xserver.nix 33# ./virtualbox.nix 34 ./zsh.nix 35 36 nvidia 37 ./${systemSettings.displayManager}.nix 38 ./${systemSettings.desktop}.nix 39 ]; 40 41 # Allow unfree packages 42 43 # List packages installed in system profile. To search, run: 44 # $ nix search wget 45 environment.systemPackages = with pkgs; [ 46 vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. 47 # wget 48 alejandra 49 nixd 50 ]; 51 52 # Some programs need SUID wrappers, can be configured further or are 53 # started in user sessions. 54 # programs.mtr.enable = true; 55 # programs.gnupg.agent = { 56 # enable = true; 57 # enableSSHSupport = true; 58 # }; 59 60 # List services that you want to enable: 61 62 # Enable the OpenSSH daemon. 63 # services.openssh.enable = true; 64 65 # Open ports in the firewall. 66 # networking.firewall.allowedTCPPorts = [ ... ]; 67 # networking.firewall.allowedUDPPorts = [ ... ]; 68 # Or disable the firewall altogether. 69 # networking.firewall.enable = false; 70 71 # This value determines the NixOS release from which the default 72 # settings for stateful data, like file locations and database versions 73 # on your system were taken. It‘s perfectly fine and recommended to leave 74 # this value at the release version of the first install of this system. 75 # Before changing this value read the documentation for this option 76 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 77 system.stateVersion = "24.05"; # Did you read the comment? 78}