materusPC: use home-manager as NixOS module

This commit is contained in:
Mateusz Słodkowicz 2023-06-07 01:22:51 +02:00
parent 23c8980f68
commit 7e3954506d
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 20 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{ inputs, materusFlake }: { inputs, materusFlake }:
let let
profles = import ../profile; profiles = import ../profile;
in in
{ {
materusPC = inputs.nixpkgs.lib.nixosSystem rec { materusPC = inputs.nixpkgs.lib.nixosSystem rec {
@ -10,7 +10,23 @@ in
modules = [ modules = [
./materusPC ./materusPC
inputs.private.systemModule inputs.private.systemModule
profles.osProfile profiles.osProfile
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.materus = { config ,... }: {
imports = [
../home/materus
materusPC/extraHome.nix
profiles.homeProfile
inputs.private.homeModule
];
materus.profile.nixpkgs.enable = false;
};
home-manager.extraSpecialArgs = { inherit inputs; inherit materusFlake; };
}
]; ];
}; };
valkyrie = inputs.nixpkgs.lib.nixosSystem rec { valkyrie = inputs.nixpkgs.lib.nixosSystem rec {
@ -19,7 +35,7 @@ in
modules = [ modules = [
./valkyrie ./valkyrie
inputs.private.systemModule inputs.private.systemModule
profles.osProfile profiles.osProfile
]; ];
}; };

View File

@ -7,7 +7,7 @@
materus.profile = { materus.profile = {
fonts.enable = lib.mkDefault true; fonts.enable = lib.mkDefault true;
nixpkgs.enable = lib.mkDefault true; nixpkgs.enable = lib.mkDefault false;
enableDesktop = lib.mkDefault true; enableDesktop = lib.mkDefault true;
enableTerminal = lib.mkDefault true; enableTerminal = lib.mkDefault true;
enableTerminalExtra = lib.mkDefault true; enableTerminalExtra = lib.mkDefault true;

View File

@ -343,8 +343,6 @@ in
gnomeExtensions.dash-to-panel gnomeExtensions.dash-to-panel
gnomeExtensions.dash-to-dock gnomeExtensions.dash-to-dock
*/ */
config.materus.profile.packages.home-manager
]; ];