home-manager: clean up global configuration & import a bit

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-05-07 16:45:37 +02:00
parent 1bdd2dd06e
commit 402d3a5a3a
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A
6 changed files with 20 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
imports = [ ../secrets/users.nix ../system/home-manager ];
imports = [ ../secrets/users.nix ];
users.mutableUsers = false;

View file

@ -146,10 +146,6 @@
simple-nixos-mailserver.nixosModules.mailserver
{ nixpkgs = { inherit overlays; }; }
home-manager.nixosModules.home-manager
{
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
}
# who doesn't love a bit of composability
({ config, ... }: {
_module.args = {

View file

@ -1,7 +1,12 @@
{ config, ... }:
{
imports = [ ../common ../services/openssh.nix ../system/headless.nix ];
imports = [
../common
../system/home-manager
../services/openssh.nix
../system/headless.nix
];
boot.loader.grub = {
efiInstallAsRemovable = true;

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
imports = [ ../common ../services/openssh.nix ];
imports = [ ../common ../system/home-manager ../services/openssh.nix ];
boot.kernelParams = [ "audit=0" ];

View file

@ -1 +1,6 @@
{ home-manager.users.christoph.imports = [ ./common.nix ]; }
{
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.christoph.imports = [ ./common.nix ];
}

View file

@ -1,5 +1,10 @@
{
imports = [ ../common ../services/openssh.nix ../system/headless.nix ];
imports = [
../common
../system/home-manager
../services/openssh.nix
../system/headless.nix
];
boot.initrd.availableKernelModules =
[ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" ];