❄️ 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(fmt): added treefmt

adjoly 7f0f284f 1749113c

+55 -10
+35
flake.lock
··· 499 499 "type": "github" 500 500 } 501 501 }, 502 + "nixpkgs_5": { 503 + "locked": { 504 + "lastModified": 1761236834, 505 + "narHash": "sha256-+pthv6hrL5VLW2UqPdISGuLiUZ6SnAXdd2DdUE+fV2Q=", 506 + "owner": "nixos", 507 + "repo": "nixpkgs", 508 + "rev": "d5faa84122bc0a1fd5d378492efce4e289f8eac1", 509 + "type": "github" 510 + }, 511 + "original": { 512 + "owner": "nixos", 513 + "ref": "nixpkgs-unstable", 514 + "repo": "nixpkgs", 515 + "type": "github" 516 + } 517 + }, 502 518 "nixvim": { 503 519 "inputs": { 504 520 "flake-parts": "flake-parts_2", ··· 627 643 "nixvim": "nixvim", 628 644 "pogit": "pogit", 629 645 "timmy": "timmy", 646 + "treefmt-nix": "treefmt-nix", 630 647 "unstablepkgs": "unstablepkgs", 631 648 "zen-browser": "zen-browser" 632 649 } ··· 700 717 "original": { 701 718 "owner": "keyzox71", 702 719 "repo": "timmy", 720 + "type": "github" 721 + } 722 + }, 723 + "treefmt-nix": { 724 + "inputs": { 725 + "nixpkgs": "nixpkgs_5" 726 + }, 727 + "locked": { 728 + "lastModified": 1761311587, 729 + "narHash": "sha256-Msq86cR5SjozQGCnC6H8C+0cD4rnx91BPltZ9KK613Y=", 730 + "owner": "numtide", 731 + "repo": "treefmt-nix", 732 + "rev": "2eddae033e4e74bf581c2d1dfa101f9033dbd2dc", 733 + "type": "github" 734 + }, 735 + "original": { 736 + "owner": "numtide", 737 + "repo": "treefmt-nix", 703 738 "type": "github" 704 739 } 705 740 },
+13 -10
flake.nix
··· 11 11 disko, 12 12 lanzaboote, 13 13 nixos-generators, 14 + treefmt-nix, 14 15 ... 15 16 }: 16 17 let ··· 28 29 system = system; 29 30 } 30 31 ); 32 + 33 + treefmtEval = forEachSupportedSystem ({ pkgs, ... }: treefmt-nix.lib.evalModule pkgs ./treefmt.nix); 31 34 in 32 35 { 33 36 nixosConfigurations = { ··· 85 88 devShells = forEachSupportedSystem ( 86 89 { pkgs, ... }: 87 90 { 88 - default = pkgs.callPackage ./shell.nix {}; 89 - } 91 + default = pkgs.callPackage ./shell.nix { }; 92 + } 90 93 ); 91 94 packages = forEachSupportedSystem ( 92 95 { pkgs, system }: ··· 98 101 keyznvim = pkgs.callPackage ./pkgs/keyznvim { 99 102 nixvim = nixvim; 100 103 liteMode = false; 101 - home = ""; 102 - inherit inputs outputs self; 104 + home = ""; 105 + inherit inputs outputs self; 103 106 }; 104 107 keyznvim-lite = pkgs.callPackage ./pkgs/keyznvim { 105 108 nixvim = nixvim; 106 109 liteMode = true; 107 - home = ""; 108 - inherit inputs outputs self; 110 + home = ""; 111 + inherit inputs outputs self; 109 112 }; 110 113 virtualBoyy = 111 114 { ··· 207 210 }; 208 211 } 209 212 ); 213 + formatter = forEachSupportedSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper); 210 214 }; 211 215 212 216 inputs = { ··· 251 255 disko = { 252 256 url = "github:nix-community/disko"; 253 257 }; 258 + 254 259 lanzaboote = { 255 260 url = "github:nix-community/lanzaboote/v0.4.2"; 256 261 inputs.nixpkgs.follows = "nixpkgs"; 257 262 }; 258 263 259 - nixvim = { 260 - url = "github:nix-community/nixvim"; 261 - # inputs.nixpkgs.follows = "nixpkgs"; 262 - }; 264 + nixvim.url = "github:nix-community/nixvim"; 263 265 264 266 nixos-generators = { 265 267 url = "github:nix-community/nixos-generators"; 266 268 inputs.nixpkgs.follows = "nixpkgs"; 267 269 }; 268 270 271 + treefmt-nix.url = "github:numtide/treefmt-nix"; 269 272 }; 270 273 }
+7
treefmt.nix
··· 1 + { ... }: 2 + { 3 + projectRootFile = "flake.nix"; 4 + 5 + programs.deadnix.enable = true; 6 + programs.nixfmt.enable = true; 7 + }