Compare commits

...

2 Commits

Author SHA1 Message Date
Giulio De Pasquale
d13bf9e990 lib: Sugar syntax 2023-02-19 07:02:55 +01:00
Giulio De Pasquale
662f02aae2 lib: Removed nix registry handling (wrt nixpkgs and nixos-unstable) 2023-02-19 07:02:00 +01:00

View File

@ -1,6 +1,5 @@
{ pkgs
, nixpkgs
, nixos-unstable
, unstablePkgs
, home-manager
, system
@ -24,7 +23,7 @@
add_imports = imports;
in
nixpkgs.lib.nixosSystem {
inherit system;
inherit system pkgs;
modules = [
{
@ -33,27 +32,14 @@
(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 = pkgs.lib.singleton (mkHomeRole "common");
users.root.imports = [ (mkHomeRole "common") ];
extraSpecialArgs.unstablePkgs = unstablePkgs;
useGlobalPkgs = true;
};
system.stateVersion = "22.11";
environment.shells = [ pkgs.zsh ];
users.defaultUserShell = pkgs.zsh;
}