diff options
Diffstat (limited to 'modules/profiles')
-rw-r--r-- | modules/profiles/common/default.nix | 19 | ||||
-rw-r--r-- | modules/profiles/libvirtd/default.nix | 7 | ||||
-rw-r--r-- | modules/profiles/upgrade/default.nix | 3 | ||||
-rw-r--r-- | modules/profiles/wireshark/default.nix | 7 |
4 files changed, 27 insertions, 9 deletions
diff --git a/modules/profiles/common/default.nix b/modules/profiles/common/default.nix index 67d228a..da7df0f 100644 --- a/modules/profiles/common/default.nix +++ b/modules/profiles/common/default.nix @@ -1,9 +1,20 @@ -{ inputs, lib, pkgs, ... }: +{ + inputs, + lib, + pkgs, + ... +}: { nix = { settings = { - trusted-users = [ "@wheel" "root" ]; - experimental-features = lib.mkDefault [ "nix-command" "flakes" ]; + trusted-users = [ + "@wheel" + "root" + ]; + experimental-features = lib.mkDefault [ + "nix-command" + "flakes" + ]; auto-optimise-store = true; }; gc = { @@ -19,7 +30,7 @@ allowUnfreePredicate = (_: true); }; overlays = [ - (final: prev: { + (final: _prev: { unstable = import inputs.nixpkgs-unstable { system = final.system; config.allowUnfree = true; diff --git a/modules/profiles/libvirtd/default.nix b/modules/profiles/libvirtd/default.nix index 222fdab..f10a5ce 100644 --- a/modules/profiles/libvirtd/default.nix +++ b/modules/profiles/libvirtd/default.nix @@ -14,6 +14,9 @@ # Add any users in the 'wheel' group to the 'libvirtd' group. users.groups.libvirtd.members = - with builtins; let users = config.users.users; in - filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); + with builtins; + let + users = config.users.users; + in + filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); } diff --git a/modules/profiles/upgrade/default.nix b/modules/profiles/upgrade/default.nix index 32c49a8..80fd3e3 100644 --- a/modules/profiles/upgrade/default.nix +++ b/modules/profiles/upgrade/default.nix @@ -17,7 +17,8 @@ let hostname = config.networking.hostName; dependencies = [ "network-online.target" ]; - in { + in + { wantedBy = [ "multi-user.target" ]; wants = dependencies; after = dependencies; diff --git a/modules/profiles/wireshark/default.nix b/modules/profiles/wireshark/default.nix index ab741ff..6b3dd3d 100644 --- a/modules/profiles/wireshark/default.nix +++ b/modules/profiles/wireshark/default.nix @@ -7,6 +7,9 @@ # Add any users in the 'wheel' group to the 'wireshark' group. users.groups.wireshark.members = - with builtins; let users = config.users.users; in - filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); + with builtins; + let + users = config.users.users; + in + filter (u: elem "wheel" users.${u}.extraGroups) (attrNames users); } |