aboutsummaryrefslogtreecommitdiff
path: root/modules/profiles
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
committertdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
commit88017f5a874478dd82f306a5df88c38a8d06fcb6 (patch)
tree8806c58c4f21bb6a56d8530df8a93b256d44b4f3 /modules/profiles
parent01d012473d4311d4f4e5a0831d912bc4b8c61639 (diff)
fix: format flake with `nixfmt-rfc-style`
Diffstat (limited to 'modules/profiles')
-rw-r--r--modules/profiles/common/default.nix19
-rw-r--r--modules/profiles/libvirtd/default.nix7
-rw-r--r--modules/profiles/upgrade/default.nix3
-rw-r--r--modules/profiles/wireshark/default.nix7
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);
}