diff options
author | Minijackson <minijackson@riseup.net> | 2023-02-02 16:11:15 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2023-02-02 16:11:15 +0100 |
commit | 171b7876576cc8945f474369f5f0d550c28ca525 (patch) | |
tree | 3fe9d1ff1ff1f3a56f8e4caadd6f6cbdc353c349 | |
parent | e25a892746b7566ed50a5d6af8f0767efc53d7b5 (diff) | |
download | nixos-config-reborn-171b7876576cc8945f474369f5f0d550c28ca525.tar.gz nixos-config-reborn-171b7876576cc8945f474369f5f0d550c28ca525.zip |
configuration: configure HM to better integrate with NixOS
-rw-r--r-- | configuration.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configuration.nix b/configuration.nix index 7424c2e..551aa20 100644 --- a/configuration.nix +++ b/configuration.nix | |||
@@ -1,11 +1,7 @@ | |||
1 | inputs: | 1 | inputs: |
2 | 2 | ||
3 | { config, pkgs, modulesPath, lib, ... }: | 3 | { pkgs, ... }: |
4 | 4 | ||
5 | let | ||
6 | optionalImport = path: | ||
7 | lib.optional (builtins.pathExists path) path; | ||
8 | in | ||
9 | { | 5 | { |
10 | imports = [ | 6 | imports = [ |
11 | (import ./common/default.nix inputs) | 7 | (import ./common/default.nix inputs) |
@@ -39,6 +35,11 @@ in | |||
39 | wipe | 35 | wipe |
40 | ]; | 36 | ]; |
41 | 37 | ||
38 | home-manager = { | ||
39 | useGlobalPkgs = true; | ||
40 | useUserPackages = true; | ||
41 | }; | ||
42 | |||
42 | users.extraUsers.minijackson = { | 43 | users.extraUsers.minijackson = { |
43 | isNormalUser = true; | 44 | isNormalUser = true; |
44 | extraGroups = [ "users" "wheel" ]; | 45 | extraGroups = [ "users" "wheel" ]; |