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