Skip to content

Commit

Permalink
Add lix specialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed May 6, 2024
1 parent 7f5ec4a commit 989bfbb
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 2 deletions.
92 changes: 92 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
flake-utils.follows = "flake-utils";
};
};

lix = {
type = "git";
url = "https://[email protected]/lix-project/lix";
ref = "refs/tags/2.90-beta.1";
flake = false;
};

lix-module = {
type = "git";
url = "https://git.lix.systems/lix-project/nixos-module";
inputs.lix.follows = "lix";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
Expand All @@ -56,6 +70,7 @@
, pre-commit-hooks
, hosts
, ecsls
, lix-module
, ...
}:
let
Expand All @@ -81,7 +96,7 @@
useUserPackages = true;
users.${username} = import ./home;
extraSpecialArgs = {
inherit username system ecsls pkgs;
inherit pkgs username system ecsls lix-module;
};
};
};
Expand Down
5 changes: 4 additions & 1 deletion system/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{ config, username, pkgs, ... }:
{
imports = [ ./polkit.nix ];
imports = [
./polkit.nix
./lix.nix
];

boot = {
consoleLogLevel = 0;
Expand Down
15 changes: 15 additions & 0 deletions system/lix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ lix-module, ... }:
{
specialisation = {
lix.configuration = {
imports = [ lix-module.nixosModules.default ];
};

nix.settings = {
extra-substituters = [ "https://cache.lix.systems" ];
trusted-public-keys = [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
};
};
}

0 comments on commit 989bfbb

Please sign in to comment.