❄️ 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: added a very cool feature !

adjoly 9937aace fd48f401

+75 -78
+14 -14
flake.lock
··· 79 79 ] 80 80 }, 81 81 "locked": { 82 - "lastModified": 1731235328, 83 - "narHash": "sha256-NjavpgE9/bMe/ABvZpyHIUeYF1mqR5lhaep3wB79ucs=", 82 + "lastModified": 1731604581, 83 + "narHash": "sha256-Qq2YZZaDTB3FZLWU/Hgh1uuWlUBl3cMLGB99bm7rFUM=", 84 84 "owner": "nix-community", 85 85 "repo": "home-manager", 86 - "rev": "60bb110917844d354f3c18e05450606a435d2d10", 86 + "rev": "1d0862ee2d7c6f6cd720d6f32213fa425004be10", 87 87 "type": "github" 88 88 }, 89 89 "original": { ··· 137 137 }, 138 138 "nixos-hardware": { 139 139 "locked": { 140 - "lastModified": 1730919458, 141 - "narHash": "sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg=", 142 - "owner": "NixOS", 140 + "lastModified": 1731690455, 141 + "narHash": "sha256-yNj9ENX/2+qJnYTvfgm0Ui7Qhs7UdijuuB94ati6qGo=", 142 + "owner": "keyzox71", 143 143 "repo": "nixos-hardware", 144 - "rev": "e1cc1f6483393634aee94514186d21a4871e78d7", 144 + "rev": "40db02760a12c0e8920120e66c0a48849a41d9d8", 145 145 "type": "github" 146 146 }, 147 147 "original": { 148 - "owner": "NixOS", 148 + "owner": "keyzox71", 149 149 "ref": "master", 150 150 "repo": "nixos-hardware", 151 151 "type": "github" ··· 153 153 }, 154 154 "nixpkgs": { 155 155 "locked": { 156 - "lastModified": 1730963269, 157 - "narHash": "sha256-rz30HrFYCHiWEBCKHMffHbMdWJ35hEkcRVU0h7ms3x0=", 156 + "lastModified": 1731386116, 157 + "narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=", 158 158 "owner": "nixos", 159 159 "repo": "nixpkgs", 160 - "rev": "83fb6c028368e465cd19bb127b86f971a5e41ebc", 160 + "rev": "689fed12a013f56d4c4d3f612489634267d86529", 161 161 "type": "github" 162 162 }, 163 163 "original": { ··· 230 230 }, 231 231 "unstablepkgs": { 232 232 "locked": { 233 - "lastModified": 1731139594, 234 - "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", 233 + "lastModified": 1731319897, 234 + "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=", 235 235 "owner": "nixos", 236 236 "repo": "nixpkgs", 237 - "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", 237 + "rev": "dc460ec76cbff0e66e269457d7b728432263166c", 238 238 "type": "github" 239 239 }, 240 240 "original": {
+1 -3
flake.nix
··· 5 5 6 6 unstablepkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 7 7 8 - nixos-hardware.url = "github:NixOS/nixos-hardware/master"; 8 + nixos-hardware.url = "github:keyzox71/nixos-hardware/master"; 9 9 10 10 catppuccin.url = "github:catppuccin/nix"; 11 11 ··· 51 51 52 52 catppuccin.nixosModules.catppuccin 53 53 54 - nixos-hardware.nixosModules.common-gpu-intel 55 54 nixos-hardware.nixosModules.dell-precision-5530 56 - nixos-hardware.nixosModules.common-gpu-nvidia-disable 57 55 ]; 58 56 }; 59 57 };
+7 -2
home/adjoly/wm/hyprland.nix
··· 59 59 "XCURSOR_SIZE,30" 60 60 "XDG_CURRENT_DESKTOP,Hyprland" 61 61 ]; 62 + cursor = { 63 + no_hardware_cursors = true; 64 + }; 62 65 bindl = [ 63 66 # media controls 64 67 ", XF86AudioPlay, exec, playerctl play-pause" ··· 97 100 ]; 98 101 misc = { 99 102 focus_on_activate = true; 100 - initial_workspace_tracking = "2"; 101 103 }; 102 104 animation = [ 103 105 "global, 1, 0.8, default" ··· 106 108 kb_layout = "us"; 107 109 kb_variant = "intl"; 108 110 follow_mouse = "1"; 111 + scroll_factor = "0.7"; 112 + #force_no_accel = true; 109 113 touchpad = { 110 114 natural_scroll = "yes"; 111 115 tap-and-drag = true; 116 + scroll_factor = "0.5"; 112 117 }; 113 - sensitivity = "0.8"; 118 + sensitivity = "0.7"; 114 119 accel_profile = "flat"; 115 120 }; 116 121 };
+2
home/adjoly/wm/tofi.nix
··· 25 25 26 26 background-color = "#303446df"; 27 27 28 + font = "monospace"; 29 + 28 30 num-results = "10"; 29 31 30 32 terminal = "kitty";
+31 -21
home/adjoly/wm/waybar.nix
··· 13 13 layer = "top"; 14 14 modules-left = [ "hyprland/workspaces" "hyprland/window" ]; 15 15 modules-center = [ "clock" ]; 16 - modules-right = [ "mpris" "pulseaudio" "custom/prev" "custom/playpause" "custom/next" "network" "battery" ]; 16 + modules-right = [ "tray" "mpris" "pulseaudio" "custom/prev" "custom/playpause" "custom/next" "network" "battery" ]; 17 17 output = [ "eDP-1" ]; 18 18 19 19 # --------------------------------------------------------- ··· 87 87 mpris = { 88 88 format = "{dynamic}"; 89 89 format-paused = " {dynamic}"; 90 - title-len = 50; 91 - dynamic-len = 50; 90 + title-len = 20; 91 + dynamic-len = 20; 92 92 dynamic-order = [ "title" ]; 93 93 tooltip = false; 94 94 }; 95 + tray = { 96 + icon-size = 16; 97 + }; 95 98 network = { 96 99 format = "{ifname}"; 97 100 format-wifi = "{essid}"; ··· 100 103 on-click = "kitty -- nmtui"; 101 104 on-click-right = "kitty -- bluetuith"; 102 105 tooltip = false; 103 - }; 106 + };#f5a97f 104 107 battery = { 105 108 format = "{icon} {capacity} %"; 106 109 format-icons = [ "󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"]; 107 110 format-charging = "󰂄 {capacity} %"; 108 111 tooltip = false; 112 + states = { 113 + warning = 30; 114 + critical = 15; 115 + }; 109 116 }; 110 117 111 118 }; ··· 119 126 } 120 127 121 128 window#waybar { 122 - background: #292c3c; 129 + background: @mantle; 123 130 border: 2px solid transparent; 124 131 border-radius: 10px; 125 132 } ··· 128 135 border: transparent; 129 136 } 130 137 131 - #mpris, #battery, #network, #clock, #pulseaudio, #window { 132 - color: #c6d0f5; 138 + #mpris, #battery, #network, #clock, #pulseaudio, #window, #tray, #tray menu { 139 + color: @text; 133 140 margin: 6px 4px; 134 141 padding: 2px 8px; 135 142 border-radius: 8px; 136 - background-color: #303446; 143 + background-color: @base; 137 144 border: 2px solid transparent; 138 145 } 139 146 ··· 150 157 margin-left: 8px; 151 158 } 152 159 .modules-left #workspaces button { 153 - color: #c6d0f5; 160 + color: @text; 154 161 padding: 0px 4px; 155 162 border-bottom: 0px solid transparent; 156 163 } 157 164 .modules-left #workspaces button.empty { 158 - color: #414559; 165 + color: @surface0; 159 166 border-bottom: 0px solid transparent; 160 167 } 161 168 .modules-left #workspaces button.active, ··· 170 177 border: 2px solid transparent; 171 178 margin-right: 0px; 172 179 border-right: 0px; 173 - background-color: #303446; 174 - color: #c6d0f5; 180 + background-color: @base; 181 + color: @text; 175 182 } 176 183 #custom-next { 177 184 border-radius: 0px 8px 8px 0px; 178 - color: #c6d0f5; 185 + color: @text; 179 186 padding: 2px 8px; 180 187 margin: 6px 4px; 181 188 border: 2px solid transparent; 182 189 margin-left: 0px; 183 190 border-left: 0px; 184 - background-color: #303446; 191 + background-color: @base; 185 192 } 186 193 #custom-playpause { 187 - color: #c6d0f5; 194 + color: @text; 188 195 border-radius: 0px 0px 0px 0px; 189 196 padding: 2px 8px; 190 197 margin: 6px 4px; ··· 193 200 border-right: 0px; 194 201 margin-left: 0px; 195 202 border-left: 0px; 196 - background-color: #303446; 203 + background-color: @base; 197 204 } 198 205 199 206 #network.disconnected { 200 - color: #ca9ee6 207 + color: @mauve; 201 208 } 202 209 #network.ethernet { 203 - color: #c6d0f5; 210 + color: @text; 204 211 } 205 212 #network.wifi { 206 - color: #c6d0f5; 213 + color: @text; 207 214 } 208 215 209 216 #battery { 210 217 margin-right: 8px; 211 218 } 212 219 #battery.charging, #battery.plugged { 213 - color: #babbf1; 220 + color: @lavender; 214 221 } 215 222 #battery.critical:not(.charging) { 216 - color: #e78284; 223 + color: @red; 224 + } 225 + #battery.warning:not(.charging) { 226 + color: @peach; 217 227 } 218 228 ''; 219 229 };
+3 -12
hosts/LAPTOP-5530-ADAM/default.nix
··· 6 6 ./env.nix 7 7 ./boot.nix 8 8 ./fonts.nix 9 - #./services/ly.nix 9 + ./virtualbox.nix 10 10 ./services/sddm.nix 11 11 ./services/sound.nix 12 - ./hardware/nvidia.nix 13 - ./services/xserver.nix 14 12 ./services/network.nix 13 + ./services/xserver.nix 15 14 ./programs/hyprland.nix 16 15 ./hardware/hardware-configuration.nix 17 16 ··· 36 35 environment.variables = { 37 36 QT_STYLE_OVERRIDE = "Fusion"; 38 37 QT_QPA_PLATFORM = "wayland"; 39 - LIBVA_DRIVER_NAME = "iHD"; 40 38 GDK_BACKEND = "wayland"; 41 39 NIXOS_OZONE_WL = "1"; 42 40 CLUTTER_BACKEND = "wayland"; ··· 55 53 users.users.adjoly = { 56 54 shell = pkgs.zsh; 57 55 isNormalUser = true; 58 - extraGroups = [ "docker" "audio" "video" "input" "networkmanager" "wheel" "sudo" ]; 56 + extraGroups = [ "docker" "audio" "video" "input" "networkmanager" "wheel" "sudo" "vboxusers" ]; 59 57 }; 60 58 61 59 virtualisation.docker.enable = true; 62 - 63 - fonts.fontconfig = { 64 - enable = true; 65 - defaultFonts = { 66 - emoji = [ "Noto Color Emoji" ]; 67 - }; 68 - }; 69 60 70 61 catppuccin = { 71 62 enable = true;
+7 -4
hosts/LAPTOP-5530-ADAM/fonts.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - 5 4 fonts = { 6 5 enableDefaultPackages = true; 7 6 packages = with pkgs; [ 8 7 (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) 8 + 9 9 jetbrains-mono 10 - noto-fonts 10 + noto-fonts-emoji 11 + vistafonts 12 + corefonts 11 13 ]; 12 14 fontconfig = { 15 + enable = true; 13 16 defaultFonts = { 14 17 serif = [ 15 - "JetBrains Mono" 18 + "Noto Serif" 16 19 "Noto Color Emoji" 17 20 ]; 18 21 sansSerif = [ 19 - "JetBrains Mono" 22 + "Noto Sans" 20 23 "Noto Color Emoji" 21 24 ]; 22 25 monospace = [
-5
hosts/LAPTOP-5530-ADAM/hardware/nvidia.nix
··· 1 - { config, lib, pkgs, modulesPath, ... }: 2 - 3 - { 4 - # fuck you nvidia 5 - }
+1 -16
hosts/LAPTOP-5530-ADAM/programs/hyprland.nix
··· 7 7 }; 8 8 programs.hyprland = { 9 9 enable = true; 10 - #nvidiaPatches = true; 11 10 }; 12 11 environment.sessionVariables = { 13 - WLR_NO_HARDWARE_CURSORS = "1"; 12 + #WLR_NO_HARDWARE_CURSORS = "1"; 14 13 NIXOS_OZONE_WL = "1"; 15 - }; 16 - hardware = { 17 - graphics = { 18 - enable = true; 19 - enable32Bit = true; 20 - extraPackages = with pkgs; [ 21 - intel-media-driver # LIBVA_DRIVER_NAME=iHD 22 - libvdpau-va-gl 23 - ]; 24 - extraPackages32 = with pkgs.pkgsi686Linux; [ 25 - intel-vaapi-driver 26 - ]; 27 - }; 28 - #nvidia.modesetting.enable = true; 29 14 }; 30 15 }
+1 -1
hosts/LAPTOP-5530-ADAM/services/xserver.nix
··· 6 6 }; 7 7 services.xserver = { 8 8 enable = true; 9 - videoDrivers = [ "intel" ]; 9 + videoDrivers = [ "intel" "nvidia" ]; 10 10 xkb = { 11 11 layout = "us"; 12 12 variant = "intl";
+8
hosts/LAPTOP-5530-ADAM/virtualbox.nix
··· 1 + { ... }: 2 + 3 + { 4 + virtualisation.virtualbox.host = { 5 + enable = true; 6 + enableExtensionPack = true; 7 + }; 8 + }