mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 02:40:33 +01:00
Moving home-manager into a seperate module to conditionally import it into host configs
This commit is contained in:
parent
9f7743716a
commit
eda95098d4
12
flake.nix
12
flake.nix
|
@ -28,13 +28,13 @@
|
|||
inherit system;
|
||||
modules = [
|
||||
./hosts/${host}
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
#home-manager.nixosModules.home-manager {
|
||||
# home-manager.useGlobalPkgs = true;
|
||||
# home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = inputs;
|
||||
home-manager.users.xqtc = {...}: {imports = [ ./home nixvim.homeManagerModules.nixvim ]; };
|
||||
}
|
||||
# home-manager.extraSpecialArgs = inputs;
|
||||
# home-manager.users.xqtc = {...}: {imports = [ ./home nixvim.homeManagerModules.nixvim ]; };
|
||||
#}
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, inputs, lib, ... }:
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./modules/nixvim.nix
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ config, lib, inputs, pkgs, nixos-hardware, ... }:
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
#../antivirus.nix
|
||||
../../modules/home-manager.nix
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
||||
../gc.nix
|
||||
];
|
||||
|
|
10
modules/home-manager.nix
Normal file
10
modules/home-manager.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{lib, inputs, ...}: {
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
config = {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = inputs;
|
||||
home-manager.users.xqtc = {...}: {imports = [ ../home inputs.nixvim.homeManagerModules.nixvim ]; };
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue