move home-manager import to flake

This commit is contained in:
Peder Bergebakken Sundt 2023-10-15 03:37:29 +02:00
parent 2df8c52bcb
commit 2174164a0c
8 changed files with 7 additions and 18 deletions

View File

@ -108,6 +108,7 @@
./base.nix
"${self}/hosts/${hostname}"
sops-nix.nixosModules.sops
home-manager.nixosModule
] ++ modules;
#++ flake-programs-sqlite.nixosModules.programs-sqlite; # TODO: make work
@ -118,6 +119,12 @@
age.generateKey = true;
};
home-manager.useGlobalPkgs = true; # go brrr, reuse overrides
home-manager.extraSpecialArgs = {
inherit inputs;
flakes = flake inputs system;
};
# still needed even if using networkd
networking.hostName = hostname;
networking.domain = domain;

View File

@ -11,7 +11,6 @@
../../profiles/upgrade-diff.nix
../../profiles/sshd.nix
../../users # home-manager
../../users/pbsds
../../users/daniel

View File

@ -15,7 +15,6 @@
../../profiles/upgrade-diff.nix
../../profiles/sshd.nix
../../users # home-manager
../../users/pbsds
../../profiles/shell/base.nix

View File

@ -29,7 +29,6 @@
../../profiles/podman.nix
../../profiles/docker.nix
../../users # home-manager
../../users/pbsds
../../profiles/shell/base.nix

View File

@ -21,7 +21,6 @@
../../profiles/upgrade-diff.nix
../../profiles/sshd.nix
../../users # home-manager
../../users/pbsds
../../profiles/mounts/reidun-nfs.nix

View File

@ -12,7 +12,6 @@
../../profiles/sshd.nix
../../profiles/podman.nix
../../users # home-manager
../../users/pbsds
../../users/jornane

View File

@ -30,7 +30,6 @@
../../profiles/podman.nix
../../profiles/docker.nix
../../users # home-manager
../../users/pbsds
../../profiles/mounts/reidun-nfs.nix

View File

@ -1,12 +0,0 @@
{ config, pkgs, lib, inputs, flakes, ... }:
{
#imports = [ <home-manager/nixos> ];
imports = [ inputs.home-manager.nixosModule ];
home-manager.extraSpecialArgs = {
inherit inputs flakes;
};
home-manager.useGlobalPkgs = true; # go brrr, reuse overrides
#home-manager.useUserPackages = true # needed if VM, somewhat brrr, installs user packages to /etc instead of ~/.nix-profile
# When adding a new user accounts: Don't forget to set a password with passwd!
}