Compare commits
No commits in common. "d13bf9e99051f10d038d5251ec7201e562395a66" and "cc9aa1e3a93498b75dfc119a779bed6da3148a87" have entirely different histories.
d13bf9e990
...
cc9aa1e3a9
18
lib/host.nix
18
lib/host.nix
@ -1,5 +1,6 @@
|
||||
{ pkgs
|
||||
, nixpkgs
|
||||
, nixos-unstable
|
||||
, unstablePkgs
|
||||
, home-manager
|
||||
, system
|
||||
@ -23,7 +24,7 @@
|
||||
add_imports = imports;
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system pkgs;
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
{
|
||||
@ -32,8 +33,21 @@
|
||||
(mkSysRole "acme")
|
||||
];
|
||||
|
||||
nixpkgs = { inherit pkgs; };
|
||||
|
||||
nix = {
|
||||
nixPath = [
|
||||
"nixpkgs=${nixpkgs}"
|
||||
"unstable=${nixos-unstable}"
|
||||
];
|
||||
registry = {
|
||||
nixpkgs.flake = nixpkgs;
|
||||
unstable.flake = nixos-unstable;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
users.root.imports = [ (mkHomeRole "common") ];
|
||||
users.root.imports = pkgs.lib.singleton (mkHomeRole "common");
|
||||
extraSpecialArgs.unstablePkgs = unstablePkgs;
|
||||
useGlobalPkgs = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user