Rename system
to lib
This commit is contained in:
parent
cf4c9710a2
commit
addad268e5
18 changed files with 2 additions and 2 deletions
lib/nixos
29
lib/nixos/default.nix
Normal file
29
lib/nixos/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
self,
|
||||
system,
|
||||
username,
|
||||
}: {
|
||||
desktop ? false,
|
||||
hostname,
|
||||
}: let
|
||||
configuration = import ./configuration.nix {inherit desktop hostname inputs pkgs system;};
|
||||
hardware-configuration = import ./hardware-configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs desktop self username;};
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users."${username}" = import ./home-manager;
|
||||
};
|
||||
}
|
||||
|
||||
configuration
|
||||
hardware-configuration
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue