❄️ My personnal NixOS configuration
nix-flake nixos-configuration linux dotfiles flake nix nix-config nixos nixos-flake linux-desktop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

「✨」 feat(WTF): change a lot of things

adjoly ed12f464 8e767014

+63 -116
+19 -69
flake.lock
··· 51 51 "type": "github" 52 52 } 53 53 }, 54 - "flake-utils_2": { 55 - "locked": { 56 - "lastModified": 1659877975, 57 - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", 58 - "owner": "numtide", 59 - "repo": "flake-utils", 60 - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", 61 - "type": "github" 62 - }, 63 - "original": { 64 - "owner": "numtide", 65 - "repo": "flake-utils", 66 - "type": "github" 67 - } 68 - }, 69 54 "home-manager": { 70 55 "inputs": { 71 56 "nixpkgs": [ ··· 94 79 ] 95 80 }, 96 81 "locked": { 97 - "lastModified": 1730633670, 98 - "narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=", 82 + "lastModified": 1730837930, 83 + "narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=", 99 84 "owner": "nix-community", 100 85 "repo": "home-manager", 101 - "rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661", 86 + "rev": "2f607e07f3ac7e53541120536708e824acccfaa8", 102 87 "type": "github" 103 88 }, 104 89 "original": { ··· 115 100 ] 116 101 }, 117 102 "locked": { 118 - "lastModified": 1729224425, 119 - "narHash": "sha256-w9dNUedNe2qnhHuhcRf7A1l29+/6DxdMfwN6g4U3c/w=", 103 + "lastModified": 1730743354, 104 + "narHash": "sha256-gU4NySYyXeAzVaF5bI6BKmj2CdgiwGFnuPjXUId3Dx0=", 120 105 "owner": "hyprwm", 121 106 "repo": "contrib", 122 - "rev": "d72bc8b1cd30d448bd438e8328f8eeb4c0f2ddb6", 107 + "rev": "792f6b83dc719214e0e2a0b380c34f147b28ece2", 123 108 "type": "github" 124 109 }, 125 110 "original": { ··· 134 119 "nixpkgs": "nixpkgs" 135 120 }, 136 121 "locked": { 137 - "lastModified": 1730729521, 138 - "narHash": "sha256-0OjX53uZ4V2tUphUhk6GP/k6crGofDKa8k/ZgXueehs=", 122 + "lastModified": 1730921625, 123 + "narHash": "sha256-eD+cHK4apz6VjC+aU8p2yCQaXsD0krc1ysxixKlPPhY=", 139 124 "owner": "keyzox71", 140 125 "repo": "nvim", 141 - "rev": "29a771e403d85d6231aaaf31d4a2819c318c2b87", 126 + "rev": "197861a4f447253803a7b829334b44ba794fb602", 142 127 "type": "github" 143 128 }, 144 129 "original": { ··· 148 133 "type": "github" 149 134 } 150 135 }, 151 - "nixgl": { 152 - "inputs": { 153 - "flake-utils": "flake-utils_2", 154 - "nixpkgs": "nixpkgs_2" 155 - }, 156 - "locked": { 157 - "lastModified": 1713543440, 158 - "narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=", 159 - "owner": "nix-community", 160 - "repo": "nixGL", 161 - "rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a", 162 - "type": "github" 163 - }, 164 - "original": { 165 - "owner": "nix-community", 166 - "repo": "nixGL", 167 - "type": "github" 168 - } 169 - }, 170 136 "nixos-hardware": { 171 137 "locked": { 172 - "lastModified": 1730537918, 173 - "narHash": "sha256-GJB1/aaTnAtt9sso/EQ77TAGJ/rt6uvlP0RqZFnWue8=", 138 + "lastModified": 1730919458, 139 + "narHash": "sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg=", 174 140 "owner": "NixOS", 175 141 "repo": "nixos-hardware", 176 - "rev": "f6e0cd5c47d150c4718199084e5764f968f1b560", 142 + "rev": "e1cc1f6483393634aee94514186d21a4871e78d7", 177 143 "type": "github" 178 144 }, 179 145 "original": { ··· 213 179 }, 214 180 "nixpkgs_2": { 215 181 "locked": { 216 - "lastModified": 1660551188, 217 - "narHash": "sha256-a1LARMMYQ8DPx1BgoI/UN4bXe12hhZkCNqdxNi6uS0g=", 218 - "owner": "nixos", 219 - "repo": "nixpkgs", 220 - "rev": "441dc5d512153039f19ef198e662e4f3dbb9fd65", 221 - "type": "github" 222 - }, 223 - "original": { 224 - "owner": "nixos", 225 - "repo": "nixpkgs", 226 - "type": "github" 227 - } 228 - }, 229 - "nixpkgs_3": { 230 - "locked": { 231 - "lastModified": 1730327045, 232 - "narHash": "sha256-xKel5kd1AbExymxoIfQ7pgcX6hjw9jCgbiBjiUfSVJ8=", 182 + "lastModified": 1730741070, 183 + "narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=", 233 184 "owner": "nixos", 234 185 "repo": "nixpkgs", 235 - "rev": "080166c15633801df010977d9d7474b4a6c549d7", 186 + "rev": "d063c1dd113c91ab27959ba540c0d9753409edf3", 236 187 "type": "github" 237 188 }, 238 189 "original": { ··· 270 221 "home-unstable": "home-unstable", 271 222 "hyprland-contrib": "hyprland-contrib", 272 223 "keyznvim": "keyznvim", 273 - "nixgl": "nixgl", 274 224 "nixos-hardware": "nixos-hardware", 275 - "nixpkgs": "nixpkgs_3", 225 + "nixpkgs": "nixpkgs_2", 276 226 "pogit": "pogit", 277 227 "unstablepkgs": "unstablepkgs" 278 228 } ··· 294 244 }, 295 245 "unstablepkgs": { 296 246 "locked": { 297 - "lastModified": 1730531603, 298 - "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", 247 + "lastModified": 1730785428, 248 + "narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=", 299 249 "owner": "nixos", 300 250 "repo": "nixpkgs", 301 - "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", 251 + "rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7", 302 252 "type": "github" 303 253 }, 304 254 "original": {
+3 -5
flake.nix
··· 30 30 url = "github:hyprwm/contrib"; 31 31 inputs.nixpkgs.follows = "nixpkgs"; 32 32 }; 33 - nixgl.url = "github:nix-community/nixGL"; 34 33 }; 35 34 36 - outputs = inputs@{ nixpkgs, unstablepkgs, catppuccin, home-unstable, nixos-hardware, nixgl, ... }: 35 + outputs = inputs@{ nixpkgs, unstablepkgs, catppuccin, home-unstable, nixos-hardware, ... }: 37 36 let 38 37 supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 39 38 forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { ··· 44 43 in 45 44 { 46 45 nixosConfigurations = { 47 - LAPTOP-5530-ADAM = nixpkgs.lib.nixosSystem { 46 + LAPTOP-5530-ADAM = unstablepkgs.lib.nixosSystem { 48 47 system = "x86_64-linux"; 49 48 specialArgs = { inherit inputs; }; 50 49 modules = [ ··· 62 61 "42adjoly" = home-unstable.lib.homeManagerConfiguration { 63 62 pkgs = import unstablepkgs { 64 63 system = "x86_64-linux"; 65 - overlays = [ nixgl.overlay ]; 66 64 }; 67 65 modules = [ 68 66 ./home/adjoly/home42.nix ··· 73 71 }; 74 72 } 75 73 ]; 76 - extraSpecialArgs = { inherit inputs nixgl; }; 74 + extraSpecialArgs = { inherit inputs; }; 77 75 }; 78 76 }; 79 77 devShells = forEachSupportedSystem ({ pkgs }: {
+3
home/adjoly/home.nix
··· 50 50 }; 51 51 }; 52 52 53 + nix.nixPath = [ "nixpkgs=${inputs.unstablepkgs}" ]; 54 + 53 55 home = { 54 56 packages = with pkgs; [ 55 57 vlc ··· 61 63 discord 62 64 obsidian 63 65 playerctl 66 + hyprpaper 64 67 parsec-bin 65 68 tradingview 66 69 prismlauncher
+1
home/adjoly/home42.nix
··· 20 20 allowUnfreePredicate = (_: true); 21 21 }; 22 22 }; 23 + nix.nixPath = [ "nixpkgs=${inputs.unstablepkgs}" ]; 23 24 24 25 catppuccin = { 25 26 enable = true;
+5 -1
home/adjoly/wm/hyprland.nix
··· 23 23 gaps_out = "8,8,8,8"; 24 24 }; 25 25 gestures.workspace_swipe = "on"; 26 + exec-once = "hyprpaper"; 26 27 "$mod" = "ALT"; 27 28 "$win" = "SUPER"; 28 29 bind = [ ··· 50 51 ) 51 52 10) 52 53 ); 53 - env = "XCURSOR_SIZE,30"; 54 + env = [ 55 + "XCURSOR_SIZE,30" 56 + "XDG_CURRENT_DESKTOP,Hyprland" 57 + ]; 54 58 bindl = [ 55 59 # media controls 56 60 ", XF86AudioPlay, exec, playerctl play-pause"
+8 -19
hosts/LAPTOP-5530-ADAM/default.nix
··· 3 3 { 4 4 imports = 5 5 [ 6 - ./programs/hyprland.nix 6 + ./env.nix 7 + ./boot.nix 8 + ./fonts.nix 9 + ./services/ly.nix 10 + ./services/sound.nix 7 11 ./hardware/nvidia.nix 8 - ./hardware/hardware-configuration.nix 9 - ./services/sound.nix 10 12 ./services/xserver.nix 11 13 ./services/network.nix 12 - ./services/sddm.nix 13 - ./boot.nix 14 - ./env.nix 15 - ./fonts.nix 14 + ./programs/hyprland.nix 15 + ./hardware/hardware-configuration.nix 16 16 17 - inputs.home-manager.nixosModules.home-manager 17 + inputs.home-unstable.nixosModules.home-manager 18 18 ]; 19 19 20 20 nixpkgs = { 21 21 config = { 22 22 allowUnfree = true; 23 - packageOverrides = pkgs: { 24 - intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; }; 25 - }; 26 23 }; 27 24 }; 28 25 29 - xdg.portal.config = { 30 - common = { 31 - "org.freedesktop.impl.portal.Settings" = [ 32 - "darkman" 33 - ]; 34 - }; 35 - }; 36 26 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 37 27 38 28 environment.variables = { ··· 104 94 ]; 105 95 106 96 home-manager = { 107 - #useGlobalPkgs = true; 108 97 useUserPackages = true; 109 98 extraSpecialArgs = { inherit inputs; }; 110 99 users.adjoly = import ../../home/adjoly/home.nix;
+5 -6
hosts/LAPTOP-5530-ADAM/programs/hyprland.nix
··· 14 14 NIXOS_OZONE_WL = "1"; 15 15 }; 16 16 hardware = { 17 - opengl = { 17 + graphics = { 18 18 enable = true; 19 - driSupport = true; 20 - driSupport32Bit = true; 19 + enable32Bit = true; 21 20 extraPackages = with pkgs; [ 22 21 intel-media-driver # LIBVA_DRIVER_NAME=iHD 23 - intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) 24 - #vaapiVdpau 25 22 libvdpau-va-gl 26 - #vpl-gpu-rt 23 + ]; 24 + extraPackages32 = with pkgs.pkgsi686Linux; [ 25 + intel-vaapi-driver 27 26 ]; 28 27 }; 29 28 #nvidia.modesetting.enable = true;
+6
hosts/LAPTOP-5530-ADAM/services/ly.nix
··· 1 + { ... }: 2 + { 3 + services.displayManager.ly = { 4 + enable = true; 5 + }; 6 + }
+11 -11
hosts/LAPTOP-5530-ADAM/services/network.nix
··· 1 - { pkgs, libs, config, inputs, outputs, ... }: 1 + { ... }: 2 2 3 3 { 4 - networking = { 4 + networking = { 5 5 hostName = "LAPTOP-5530-ADAM"; 6 - networkmanager.enable = true; 7 - firewall = { 8 - enable = false; 9 - }; 10 - }; 11 - services.tailscale = { 12 - enable = true; 13 - extraUpFlags = [ "--accept-routes" ]; 14 - }; 6 + networkmanager.enable = true; 7 + firewall = { 8 + enable = false; 9 + }; 10 + }; 11 + services.tailscale = { 12 + enable = true; 13 + extraUpFlags = [ "--accept-routes" ]; 14 + }; 15 15 }
+1 -2
hosts/LAPTOP-5530-ADAM/services/sound.nix
··· 1 - { pkgs, lib, config, inputs, outputs, ... }: 1 + { ... }: 2 2 3 3 { 4 - sound.enable = true; 5 4 hardware.pulseaudio.enable = false; 6 5 security.rtkit.enable = true; 7 6 services.pipewire = {
+1 -3
hosts/LAPTOP-5530-ADAM/services/xserver.nix
··· 1 - { pkgs, lib, config, inputs, outputs, ... }: 1 + { ... }: 2 2 3 3 { 4 4 services.displayManager = { ··· 6 6 }; 7 7 services.xserver = { 8 8 enable = true; 9 - #displayManager.gdm.enable = true; 10 - #desktopManager.gnome.enable = true; 11 9 videoDrivers = [ "intel" ]; 12 10 xkb = { 13 11 layout = "us";