fuck it
This commit is contained in:
parent
b1cce6ca82
commit
3501857f2a
78 changed files with 1383 additions and 913 deletions
21
modules/nixos/system/home-manager.nix
Normal file
21
modules/nixos/system/home-manager.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
let
|
||||
cfg = config.osbmModules;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (cfg.homeManager.enable && inputs ? home-manager) {
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
# Pass inputs and outputs to home-manager modules
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
|
||||
# Configure home-manager for each user
|
||||
users = lib.genAttrs cfg.users (username: {
|
||||
home.stateVersion = lib.mkDefault "24.05";
|
||||
imports = [ ../../home-manager ];
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue