โ„๏ธ 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.

ใ€Œ๐Ÿ”จใ€ fix: working dark/light mode

adjoly a2722b3a f55196a2

+69 -109
+21 -57
flake.lock
··· 5 5 "nixpkgs": "nixpkgs" 6 6 }, 7 7 "locked": { 8 - "lastModified": 1747519437, 9 - "narHash": "sha256-uv9Wv59d+mckS2CkorOF484wp2G5TNGijdoBZ5RkAk0=", 8 + "lastModified": 1748080874, 9 + "narHash": "sha256-sUebEzAkrY8Aq5G0GHFyRddmRNGP/a2iTtV7ISNvi/c=", 10 10 "owner": "catppuccin", 11 11 "repo": "nix", 12 - "rev": "3ba714046ee32373e88166e6e9474d6ae6a5b734", 12 + "rev": "0ba11b12be81f0849a89ed17ab635164ea8f0112", 13 13 "type": "github" 14 14 }, 15 15 "original": { ··· 48 48 "original": { 49 49 "owner": "nix-community", 50 50 "repo": "disko", 51 - "type": "github" 52 - } 53 - }, 54 - "fastclass": { 55 - "inputs": { 56 - "nixpkgs": "nixpkgs_3" 57 - }, 58 - "locked": { 59 - "lastModified": 1732135845, 60 - "narHash": "sha256-Vh3+/J2rxGPiVM0gYsg1O50z+XEX0T1rpDwBnupgnak=", 61 - "owner": "seekrs", 62 - "repo": "fastclass", 63 - "rev": "752185bda66956b827cc0bea9c01e7b6160d1344", 64 - "type": "github" 65 - }, 66 - "original": { 67 - "owner": "seekrs", 68 - "ref": "nixxing", 69 - "repo": "fastclass", 70 51 "type": "github" 71 52 } 72 53 }, ··· 248 229 ] 249 230 }, 250 231 "locked": { 251 - "lastModified": 1747747328, 252 - "narHash": "sha256-3Gc5CqAJqpvI4gIU1Oxbl5w440b+rY9HvDzs5C0ChBA=", 232 + "lastModified": 1747978958, 233 + "narHash": "sha256-pQQnbxWpY3IiZqgelXHIe/OAE/Yv4NSQq7fch7M6nXQ=", 253 234 "owner": "nix-community", 254 235 "repo": "home-manager", 255 - "rev": "65d2282ff6cf560f54997013bd1e575fbd0a7ebf", 236 + "rev": "7419250703fd5eb50e99bdfb07a86671939103ea", 256 237 "type": "github" 257 238 }, 258 239 "original": { ··· 290 271 ] 291 272 }, 292 273 "locked": { 293 - "lastModified": 1747653704, 294 - "narHash": "sha256-n4mA8jcGZn1B0iZdwp0rcziKc6e+jDseWyf/qLLxDnc=", 274 + "lastModified": 1748094294, 275 + "narHash": "sha256-09EMQ8JhY2/epWabvbgImWckFScEe3SI+u7wn/sEc5Y=", 295 276 "owner": "keyzox71", 296 277 "repo": "nvim", 297 - "rev": "788c7d384b12cb258e5e64acfa3ea386c77626a5", 278 + "rev": "fbb410243699a70f3846b67a95e78d163faa1880", 298 279 "type": "github" 299 280 }, 300 281 "original": { ··· 337 318 ] 338 319 }, 339 320 "locked": { 340 - "lastModified": 1747596523, 341 - "narHash": "sha256-qmc8XgAAEE9sm0yhFDUSwTMX5b8jxQdQLQtatgTMiB4=", 321 + "lastModified": 1748064085, 322 + "narHash": "sha256-gbpFB3fivUoB5aMhqlZOhBIK/3adshudE1OriEWXLVU=", 342 323 "owner": "nix-community", 343 324 "repo": "nh", 344 - "rev": "e75dacd5df3f8feff16896884bd264dea78df334", 325 + "rev": "808e4904bc266e8932ad521cda4d6324e4b235cf", 345 326 "type": "github" 346 327 }, 347 328 "original": { ··· 369 350 "nixos-wsl": { 370 351 "inputs": { 371 352 "flake-compat": "flake-compat_2", 372 - "nixpkgs": "nixpkgs_4" 353 + "nixpkgs": "nixpkgs_3" 373 354 }, 374 355 "locked": { 375 356 "lastModified": 1746453552, ··· 460 441 }, 461 442 "nixpkgs_3": { 462 443 "locked": { 463 - "lastModified": 1731755305, 464 - "narHash": "sha256-v5P3dk5JdiT+4x69ZaB18B8+Rcu3TIOrcdG4uEX7WZ8=", 465 - "owner": "nixos", 466 - "repo": "nixpkgs", 467 - "rev": "057f63b6dc1a2c67301286152eb5af20747a9cb4", 468 - "type": "github" 469 - }, 470 - "original": { 471 - "owner": "nixos", 472 - "ref": "nixos-24.11", 473 - "repo": "nixpkgs", 474 - "type": "github" 475 - } 476 - }, 477 - "nixpkgs_4": { 478 - "locked": { 479 444 "lastModified": 1742937945, 480 445 "narHash": "sha256-lWc+79eZRyvHp/SqMhHTMzZVhpxkRvthsP1Qx6UCq0E=", 481 446 "owner": "NixOS", ··· 490 455 "type": "github" 491 456 } 492 457 }, 493 - "nixpkgs_5": { 458 + "nixpkgs_4": { 494 459 "locked": { 495 460 "lastModified": 1747953325, 496 461 "narHash": "sha256-y2ZtlIlNTuVJUZCqzZAhIw5rrKP4DOSklev6c8PyCkQ=", ··· 580 545 "inputs": { 581 546 "catppuccin": "catppuccin", 582 547 "disko": "disko", 583 - "fastclass": "fastclass", 584 548 "home-manager": "home-manager", 585 549 "home-unstable": "home-unstable", 586 550 "hyprland-contrib": "hyprland-contrib", ··· 589 553 "nh": "nh", 590 554 "nixos-hardware": "nixos-hardware", 591 555 "nixos-wsl": "nixos-wsl", 592 - "nixpkgs": "nixpkgs_5", 556 + "nixpkgs": "nixpkgs_4", 593 557 "pogit": "pogit", 594 558 "timmy": "timmy", 595 559 "unstablepkgs": "unstablepkgs", ··· 655 619 }, 656 620 "unstablepkgs": { 657 621 "locked": { 658 - "lastModified": 1747542820, 659 - "narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=", 622 + "lastModified": 1747744144, 623 + "narHash": "sha256-W7lqHp0qZiENCDwUZ5EX/lNhxjMdNapFnbErcbnP11Q=", 660 624 "owner": "nixos", 661 625 "repo": "nixpkgs", 662 - "rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043", 626 + "rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f", 663 627 "type": "github" 664 628 }, 665 629 "original": { ··· 677 641 ] 678 642 }, 679 643 "locked": { 680 - "lastModified": 1747747949, 681 - "narHash": "sha256-Ax1S/YaEovDKz9M71AweVpDxqJiTn/tHowbbUTb4gSo=", 644 + "lastModified": 1748090150, 645 + "narHash": "sha256-WrcGLv4Q94B2eG+jj5EckQfItR4zTAz/8uX2to4bU4g=", 682 646 "owner": "0xc000022070", 683 647 "repo": "zen-browser-flake", 684 - "rev": "5f7f77c79f1e7512ead0bed4e8b4bbcef8d80b38", 648 + "rev": "d25f7e7fc5a2ebcb4c41924b4755eec642e6f18d", 685 649 "type": "github" 686 650 }, 687 651 "original": {
-2
flake.nix
··· 93 93 inputs.nixpkgs.follows = "nixpkgs"; 94 94 }; 95 95 96 - fastclass.url = "github:seekrs/fastclass/nixxing"; 97 - 98 96 home-unstable = { 99 97 url = "github:nix-community/home-manager/master"; 100 98 inputs.nixpkgs.follows = "unstablepkgs";
-4
home/adjoly/gtk.nix
··· 1 - { ... }: 2 - { 3 - gtk.enable = true; 4 - }
+1 -1
home/adjoly/home-desktop.nix
··· 1 1 { inputs, pkgs, ... }: 2 2 { 3 3 imports = [ 4 - ./gtk.nix 5 4 ./adjust-brightness 6 5 ./cli-app.nix 7 6 ./wm/hyprland.nix ··· 32 31 #beeper 33 32 zenity 34 33 discord 34 + kittysay 35 35 gearlever 36 36 hyprpaper 37 37 libreoffice
+15 -4
home/adjoly/programs/kitty.nix
··· 2 2 { 3 3 programs.kitty = { 4 4 enable = true; 5 - package = pkgs.unstable.kitty; 6 5 7 6 shellIntegration.enableZshIntegration = true; 8 7 ··· 15 14 size = lib.mkDefault 13; 16 15 }; 17 16 }; 18 - xdg.configFile."kitty/light-theme.auto.conf".source = "${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Latte.conf"; 19 - xdg.configFile."kitty/dark-theme.auto.conf".source = "${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Frappe.conf"; 20 - xdg.configFile."kitty/no-preference-theme.auto.conf".source = "${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Frappe.conf"; 17 + xdg.configFile."kitty/light-theme.auto.conf" = { 18 + text = '' 19 + include ${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Latte.conf 20 + ''; 21 + }; 22 + xdg.configFile."kitty/dark-theme.auto.conf" = { 23 + text = '' 24 + include ${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Frappe.conf 25 + ''; 26 + }; 27 + xdg.configFile."kitty/no-preference-theme.auto.conf" = { 28 + text = '' 29 + include ${pkgs.kitty-themes}/share/kitty-themes/themes/Catppuccin-Frappe.conf 30 + ''; 31 + }; 21 32 }
+1 -1
home/adjoly/programs/shell/zsh.nix
··· 11 11 shellAliases = { 12 12 l = "ls -lA --color=auto"; 13 13 ls = "ls -A --color=auto"; 14 - re = "sudo nixos-rebuild switch"; 14 + re = "nh os switch /home/adjoly/nixos-config"; 15 15 update = "sudo nix flake update && sudo nixos-rebuild switch"; 16 16 grep = "grep --color=auto"; 17 17 lock = "hyprlock & systemctl suspend";
+4 -3
home/adjoly/services/darkman.nix
··· 2 2 { 3 3 services.darkman = { 4 4 enable = true; 5 - package = pkgs.unstable.darkman; 6 5 lightModeScripts = { 7 6 notification = '' 8 7 dunstify --appname=darkman --urgency=low "switching to light mode" 9 - ''; 8 + ''; 10 9 system-light = '' 11 10 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'" 12 11 dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" ··· 15 14 darkModeScripts = { 16 15 notification = '' 17 16 dunstify --appname=darkman --urgency=low "switching to dark mode" 18 - ''; 17 + ''; 19 18 system-dark = '' 20 19 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'" 21 20 dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita-dark'" ··· 24 23 settings = { 25 24 lat = 45.6483; 26 25 lng = 0.1609; 26 + dbusserver = true; 27 + portal = true; 27 28 }; 28 29 }; 29 30 }
+2 -3
home/adjoly/wm/hyprland.nix
··· 8 8 #./swaylock.nix 9 9 ./hyprlock.nix 10 10 ./hyprpaper.nix 11 - # ./xdg.nix 12 11 ]; 13 12 wayland.windowManager.hyprland = { 14 13 enable = true; ··· 18 17 border_size = "0"; 19 18 gaps_in = "4"; 20 19 gaps_out = "8,8,8,8"; 21 - "col.active_border" = "#ffbabbf1"; 22 - "col.inactive_border" = "#ff303446"; 20 + "col.active_border" = "rgba(ffbabbf1)"; 21 + "col.inactive_border" = "rgba(ff303446)"; 23 22 }; 24 23 decoration = { 25 24 rounding = 8;
-7
home/adjoly/wm/swaylock.nix
··· 1 - { ... }: 2 - 3 - { 4 - programs.swaylock = { 5 - enable = true; 6 - }; 7 - }
-13
home/adjoly/wm/xdg.nix
··· 1 - { ... }: 2 - { 3 - xdg.portal.config = { 4 - common = { 5 - default = [ 6 - "gtk" 7 - ]; 8 - "org.freedesktop.impl.portal.Settings" = [ 9 - "darkman" 10 - ]; 11 - }; 12 - }; 13 - }
+2 -1
hosts/DEV-BOYY/fonts.nix
··· 6 6 packages = with pkgs; [ 7 7 nerd-fonts.jetbrains-mono 8 8 9 + jetbrains-mono 9 10 noto-fonts 10 11 ]; 11 12 fontconfig = { ··· 20 21 "Noto Color Emoji" 21 22 ]; 22 23 monospace = [ 23 - "JetBrains Mono" 24 + "JetBrainsMono Nerd Font Mono" 24 25 "Noto Emoji" 25 26 ]; 26 27 emoji = [
+22 -12
hosts/DEV-BOYY/programs/hyprland.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - xdg.portal = { 5 - enable = true; 6 - extraPortals = [ pkgs.xdg-desktop-portal-hyprland ]; 7 - }; 8 - programs.hyprland = { 9 - enable = true; 10 - # withUWSM = true; 11 - }; 12 - environment.sessionVariables = { 13 - WLR_NO_HARDWARE_CURSORS = "1"; 14 - NIXOS_OZONE_WL = "1"; 15 - }; 4 + xdg.portal = { 5 + enable = true; 6 + extraPortals = [ 7 + pkgs.xdg-desktop-portal-hyprland 8 + pkgs.xdg-desktop-portal-gtk 9 + ]; 10 + # config = { 11 + # preferred = { 12 + # default = [ 13 + # "hyprland" 14 + # ]; 15 + # }; 16 + # }; 17 + }; 18 + programs.hyprland = { 19 + enable = true; 20 + # withUWSM = true; 21 + }; 22 + environment.sessionVariables = { 23 + WLR_NO_HARDWARE_CURSORS = "1"; 24 + NIXOS_OZONE_WL = "1"; 25 + }; 16 26 }
+1 -1
hosts/DEV-BOYY/services/network.nix
··· 7 7 nameservers = [ 8 8 "8.8.8.8" 9 9 "1.1.1.1" 10 - "192.168.1.1" 10 + "192.168.1.254" 11 11 ]; 12 12 firewall = { 13 13 enable = false;