mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(nix): reworked flake entry point
This commit is contained in:
parent
a5c009f77c
commit
377150ddd2
19 changed files with 46 additions and 29 deletions
14
nix/lib.nix
14
nix/lib.nix
|
|
@ -35,7 +35,7 @@
|
|||
agenix = input.agenix.packages.${system};
|
||||
audio-lint = input.audio-lint.defaultPackage.${system};
|
||||
};
|
||||
in {
|
||||
|
||||
mkNixOS = hostname: system: extraSettings: let
|
||||
args =
|
||||
(mkArgs system)
|
||||
|
|
@ -53,7 +53,7 @@ in {
|
|||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = args;
|
||||
users.leana.imports = [./home/common (./home/leana + "@${hostname}")];
|
||||
users.leana.imports = [./home/common ./home/${hostname}];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
@ -68,8 +68,16 @@ in {
|
|||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = args.pkgs;
|
||||
extraSpecialArgs = args;
|
||||
modules = [./home/common (./home/leana + "@${hostname}")];
|
||||
modules = [./home/common ./home/${hostname}];
|
||||
};
|
||||
in {
|
||||
mkNixOSes = xs:
|
||||
builtins.mapAttrs (hostname: settings: mkNixOS hostname settings.system (settings.settings or {}))
|
||||
xs;
|
||||
|
||||
mkHomeManagers = xs:
|
||||
builtins.mapAttrs (hostname: settings: mkHomeManager hostname settings.system (settings.settings or {}))
|
||||
xs;
|
||||
|
||||
myPackages =
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue