Commit c75419e

HPCesia <me@hpcesia.com>
2026-03-20 05:32:27
feat: use flake-file
1 parent 65d2964
modules/flake/inputs.nix
@@ -0,0 +1,73 @@
+{inputs, ...}: {
+  imports = [inputs.flake-file.flakeModules.dendritic];
+
+  flake-file = {
+    description = "NixOS configuration of HPCesia.";
+
+    inputs = {
+      aagl-gtk-on-nix = {
+        inputs.nixpkgs.follows = "nixpkgs";
+        url = "github:ezKEa/aagl-gtk-on-nix";
+      };
+
+      deploy-rs.url = "github:serokell/deploy-rs";
+
+      disko.url = "github:nix-community/disko/v1.11.0";
+
+      distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
+
+      flake-file.url = "github:vic/flake-file";
+
+      flake-parts.url = "github:hercules-ci/flake-parts";
+
+      home-manager.url = "github:nix-community/home-manager/master";
+      home-manager.inputs.nixpkgs.follows = "nixpkgs";
+
+      import-tree.url = "github:vic/import-tree";
+
+      niri-flake.url = "github:sodiboo/niri-flake";
+
+      nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
+
+      nix-gaming.url = "github:fufexan/nix-gaming";
+      nix-gaming.inputs.nixpkgs.follows = "nixpkgs";
+
+      nixcord.url = "github:kaylorben/nixcord";
+
+      nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+      nixos-hardware.url = "github:NixOS/nixos-hardware/master";
+
+      noctalia.url = "github:noctalia-dev/noctalia-shell/v4.6.7";
+      noctalia.inputs.nixpkgs.follows = "nixpkgs";
+
+      nur.url = "github:nix-community/NUR";
+
+      pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
+
+      plasma-manager.url = "github:nix-community/plasma-manager";
+      plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
+      plasma-manager.inputs.home-manager.follows = "home-manager";
+
+      programsdb.url = "github:wamserma/flake-programs-sqlite";
+      programsdb.inputs.nixpkgs.follows = "nixpkgs";
+
+      silentSDDM.url = "github:uiriansan/SilentSDDM";
+
+      stylix.url = "github:nix-community/stylix";
+      stylix.inputs.nixpkgs.follows = "nixpkgs";
+
+      vaultix.url = "github:milieuim/vaultix";
+
+      wakatime-ls.url = "github:mrnossiom/wakatime-ls";
+      wakatime-ls.inputs.nixpkgs.follows = "nixpkgs";
+
+      # == Personal inputs ==
+      nixos-logo.url = "git+https://repo.hpcesia.com/HPCesia/nixos-logo?shallow=1";
+      nixos-logo.flake = false;
+
+      wallpapers.url = "git+https://repo.hpcesia.com/HPCesia/Wallpapers?shallow=1";
+      wallpapers.flake = false;
+    };
+  };
+}
modules/root-path.nix
@@ -0,0 +1,3 @@
+{
+  flake.meta.rootPath = ../.;
+}
flake.lock
@@ -321,9 +321,26 @@
         "type": "github"
       }
     },
+    "flake-file": {
+      "locked": {
+        "lastModified": 1773637821,
+        "narHash": "sha256-Cp1x/5/97iNjXOI5hLCA51BwR6hc1dWJiZp4VPogkTw=",
+        "owner": "vic",
+        "repo": "flake-file",
+        "rev": "bb9fbe00ba6a1945fbdd6973c2585ab770f404b0",
+        "type": "github"
+      },
+      "original": {
+        "owner": "vic",
+        "repo": "flake-file",
+        "type": "github"
+      }
+    },
     "flake-parts": {
       "inputs": {
-        "nixpkgs-lib": "nixpkgs-lib"
+        "nixpkgs-lib": [
+          "nixpkgs-lib"
+        ]
       },
       "locked": {
         "lastModified": 1772408722,
@@ -341,7 +358,7 @@
     },
     "flake-parts_2": {
       "inputs": {
-        "nixpkgs-lib": "nixpkgs-lib_2"
+        "nixpkgs-lib": "nixpkgs-lib"
       },
       "locked": {
         "lastModified": 1772408722,
@@ -359,7 +376,7 @@
     },
     "flake-parts_3": {
       "inputs": {
-        "nixpkgs-lib": "nixpkgs-lib_3"
+        "nixpkgs-lib": "nixpkgs-lib_2"
       },
       "locked": {
         "lastModified": 1772408722,
@@ -377,7 +394,7 @@
     },
     "flake-parts_4": {
       "inputs": {
-        "nixpkgs-lib": "nixpkgs-lib_4"
+        "nixpkgs-lib": "nixpkgs-lib_3"
       },
       "locked": {
         "lastModified": 1772408722,
@@ -437,7 +454,7 @@
     },
     "flake-parts_7": {
       "inputs": {
-        "nixpkgs-lib": "nixpkgs-lib_5"
+        "nixpkgs-lib": "nixpkgs-lib_4"
       },
       "locked": {
         "lastModified": 1768135262,
@@ -847,21 +864,6 @@
       }
     },
     "nixpkgs-lib_4": {
-      "locked": {
-        "lastModified": 1772328832,
-        "narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
-        "owner": "nix-community",
-        "repo": "nixpkgs.lib",
-        "rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
-        "type": "github"
-      },
-      "original": {
-        "owner": "nix-community",
-        "repo": "nixpkgs.lib",
-        "type": "github"
-      }
-    },
-    "nixpkgs-lib_5": {
       "locked": {
         "lastModified": 1765674936,
         "narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
@@ -1244,6 +1246,7 @@
         "deploy-rs": "deploy-rs",
         "disko": "disko",
         "distro-grub-themes": "distro-grub-themes",
+        "flake-file": "flake-file",
         "flake-parts": "flake-parts",
         "home-manager": "home-manager",
         "import-tree": "import-tree",
@@ -1254,6 +1257,9 @@
         "nixos-hardware": "nixos-hardware",
         "nixos-logo": "nixos-logo",
         "nixpkgs": "nixpkgs_8",
+        "nixpkgs-lib": [
+          "nixpkgs"
+        ],
         "noctalia": "noctalia",
         "nur": "nur",
         "pkgs-by-name-for-flake-parts": "pkgs-by-name-for-flake-parts",
flake.nix
@@ -1,78 +1,72 @@
+# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
+# Use `nix run .#write-flake` to regenerate it.
 {
   description = "NixOS configuration of HPCesia.";
 
+  outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
+
   inputs = {
     aagl-gtk-on-nix = {
-      inputs.nixpkgs.follows = "nixpkgs";
       url = "github:ezKEa/aagl-gtk-on-nix";
+      inputs.nixpkgs.follows = "nixpkgs";
     };
-
     deploy-rs.url = "github:serokell/deploy-rs";
-
     disko.url = "github:nix-community/disko/v1.11.0";
-
     distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
-
-    flake-parts.url = "github:hercules-ci/flake-parts";
-
-    home-manager.url = "github:nix-community/home-manager/master";
-    home-manager.inputs.nixpkgs.follows = "nixpkgs";
-
+    flake-file.url = "github:vic/flake-file";
+    flake-parts = {
+      url = "github:hercules-ci/flake-parts";
+      inputs.nixpkgs-lib.follows = "nixpkgs-lib";
+    };
+    home-manager = {
+      url = "github:nix-community/home-manager/master";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     import-tree.url = "github:vic/import-tree";
-
     niri-flake.url = "github:sodiboo/niri-flake";
-
     nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
-
-    nix-gaming.url = "github:fufexan/nix-gaming";
-    nix-gaming.inputs.nixpkgs.follows = "nixpkgs";
-
+    nix-gaming = {
+      url = "github:fufexan/nix-gaming";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     nixcord.url = "github:kaylorben/nixcord";
-
-    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
-
     nixos-hardware.url = "github:NixOS/nixos-hardware/master";
-
-    noctalia.url = "github:noctalia-dev/noctalia-shell/v4.6.7";
-    noctalia.inputs.nixpkgs.follows = "nixpkgs";
-
+    nixos-logo = {
+      url = "git+https://repo.hpcesia.com/HPCesia/nixos-logo?shallow=1";
+      flake = false;
+    };
+    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+    nixpkgs-lib.follows = "nixpkgs";
+    noctalia = {
+      url = "github:noctalia-dev/noctalia-shell/v4.6.7";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     nur.url = "github:nix-community/NUR";
-
     pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
-
-    plasma-manager.url = "github:nix-community/plasma-manager";
-    plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
-    plasma-manager.inputs.home-manager.follows = "home-manager";
-
-    programsdb.url = "github:wamserma/flake-programs-sqlite";
-    programsdb.inputs.nixpkgs.follows = "nixpkgs";
-
+    plasma-manager = {
+      url = "github:nix-community/plasma-manager";
+      inputs = {
+        home-manager.follows = "home-manager";
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+    programsdb = {
+      url = "github:wamserma/flake-programs-sqlite";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     silentSDDM.url = "github:uiriansan/SilentSDDM";
-
-    stylix.url = "github:nix-community/stylix";
-    stylix.inputs.nixpkgs.follows = "nixpkgs";
-
+    stylix = {
+      url = "github:nix-community/stylix";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     vaultix.url = "github:milieuim/vaultix";
-
-    wakatime-ls.url = "github:mrnossiom/wakatime-ls";
-    wakatime-ls.inputs.nixpkgs.follows = "nixpkgs";
-
-    # == Personal inputs ==
-    nixos-logo.url = "git+https://repo.hpcesia.com/HPCesia/nixos-logo?shallow=1";
-    nixos-logo.flake = false;
-
-    wallpapers.url = "git+https://repo.hpcesia.com/HPCesia/Wallpapers?shallow=1";
-    wallpapers.flake = false;
-  };
-
-  outputs = inputs:
-    inputs.flake-parts.lib.mkFlake {inherit inputs;} {
-      imports = [(inputs.import-tree ./modules)];
-
-      # flake.meta defined in ./modules/flake/meta.nix
-      flake.meta.rootPath = ./.;
-
-      # For nixd
-      debug = true;
+    wakatime-ls = {
+      url = "github:mrnossiom/wakatime-ls";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
+    wallpapers = {
+      url = "git+https://repo.hpcesia.com/HPCesia/Wallpapers?shallow=1";
+      flake = false;
     };
+  };
 }