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 13f7f4d
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 3 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.

19 changes: 17 additions & 2 deletions 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;
};
};
};
Expand Down Expand Up @@ -114,7 +129,7 @@
inherit system;

specialArgs = {
inherit username pkgs;
inherit username pkgs lix-module;
};

modules = [
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
18 changes: 18 additions & 0 deletions system/lix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ lix-module, ... }:
let
configuration = {
imports = [ lix-module.nixosModules.default ];

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

0 comments on commit 13f7f4d

Please sign in to comment.