ctucx.git: nixfiles

ctucx' nixfiles

commit fb17fed2bbfe93c4a000b58d6de0efced3d525c8
parent cba28df8662e60a269f3c7a3d710d39c41662ef5
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 11 Jun 2024 16:32:14 +0200

flake.nix: add lix and lix-module
2 files changed, 20 insertions(+), 1 deletion(-)
M
configurations/common/default.nix
|
9
++++++++-
M
flake.nix
|
12
++++++++++++
diff --git a/configurations/common/default.nix b/configurations/common/default.nix
@@ -9,6 +9,7 @@ in {
     [
       ../../modules
       ./programs
+      inputs.lix-module.nixosModules.default
     ]
     (if (currentSystem == "x86_64-linux") then [
       inputs.home-manager.nixosModules.home-manager

@@ -34,10 +35,16 @@ in {
 
   nix = {
     nixPath  = lib.mkForce [ "nixpkgs=${NIXPKGS_PATH}" ];
-    package  = pkgs.nix;
     settings = {
       trusted-users         = [ "root" "leah" "@wheel" ];
       experimental-features = [ "nix-command" "flakes" ];
+      extra-substituters = [
+        "https://cache.lix.systems"
+      ];
+
+      trusted-public-keys = [
+        "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
+      ];
     };
   };
 
diff --git a/flake.nix b/flake.nix
@@ -119,6 +119,18 @@
       ref   = "master";
     };
 
+    lix = {
+      url = "git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1";
+      flake = false;
+    };
+
+    lix-module = {
+      url = "git+https://git.lix.systems/lix-project/nixos-module";
+      inputs.lix.follows         = "lix";
+      inputs.flake-utils.follows = "flake-utils";
+      inputs.nixpkgs.follows     = "nixpkgs";
+    };
+
     home-manager = {
       type  = "github";
       owner = "nix-community";