refactor(darwin,nixos): simplify module imports and theme configs
This commit is contained in:
20
home/module.nix
Normal file
20
home/module.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
device,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home-manager = {
|
||||
backupFileExtension = "bak";
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
inherit device;
|
||||
stablePkgs = inputs.nixpkgs-stable.legacyPackages.${device.system};
|
||||
};
|
||||
users.${device.user}.imports = [
|
||||
./.
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user