My NixOS configuration (mirror)
at main 53 lines 1.1 kB view raw
1{ 2 lib, 3 pkgs, 4 ... 5}: { 6 environment.systemPackages = with pkgs; [ 7 git 8 libnotify 9 nomacs 10 obsidian 11 vim 12 13 (pkgs.writeShellScriptBin "rebuild" '' 14 nh os switch ~/nix-config -H $HOSTNAME 15 '') 16 (pkgs.writeShellScriptBin "rebuild-test" '' 17 nh os test ~/nix-config -H $HOSTNAME 18 '') 19 ]; 20 21 environment.sessionVariables = { 22 NIXOS_OZONE_WL = "1"; 23 24 # ELECTRON_OZONE_PLATFORM_HINT can be overridden per host 25 # mainly due to some kde issues 26 ELECTRON_OZONE_PLATFORM_HINT = lib.mkDefault "wayland"; 27 }; 28 29 i18n.defaultLocale = "en_CA.UTF-8"; 30 time.timeZone = "America/Edmonton"; 31 32 services.journald.extraConfig = "SystemMaxUse=1G"; 33 34 nix.settings.experimental-features = ["nix-command" "flakes"]; 35 nixpkgs.config.allowUnfree = true; 36 37 programs.firefox.enable = true; 38 programs.fish.enable = true; 39 programs._1password-gui = { 40 enable = true; 41 polkitPolicyOwners = ["matthew_hre"]; 42 }; 43 programs.wireshark.enable = true; 44 45 services.printing.enable = true; 46 47 hardware.graphics = { 48 enable = true; 49 enable32Bit = true; 50 }; 51 52 services.xserver.xkb.layout = "us"; 53}