aboutsummaryrefslogtreecommitdiff
path: root/share/system
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-07-04 22:58:28 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-07-04 22:58:28 +0200
commit333f134ec64739abf0c3e46e59a4a8ad88b883b5 (patch)
tree5c41313437176f100116883b353c7efd4b9b7ab3 /share/system
parent430d063f50824b0b268e73c8577705dc2c4fc318 (diff)
formatting
Diffstat (limited to 'share/system')
-rw-r--r--share/system/client-common.nix11
-rw-r--r--share/system/virt.nix29
2 files changed, 14 insertions, 26 deletions
diff --git a/share/system/client-common.nix b/share/system/client-common.nix
index 879f593..4d3c3ca 100644
--- a/share/system/client-common.nix
+++ b/share/system/client-common.nix
@@ -1,9 +1,6 @@
# Common configuration options for client machines (i.e. not servers)
-{ pkgs, ... }:
-{
- imports = [
- ./steam.nix
- ];
+{ pkgs, ... }: {
+ imports = [ ./steam.nix ];
programs.hyprland.enable = true;
boot.supportedFilesystems = [ "ntfs" "bcachefs" ];
@@ -37,9 +34,7 @@
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-gnome3;
- settings = {
- default-cache-ttl = 1200;
- };
+ settings = { default-cache-ttl = 1200; };
};
sound.enable = true;
diff --git a/share/system/virt.nix b/share/system/virt.nix
index 0207064..6f5a9fe 100644
--- a/share/system/virt.nix
+++ b/share/system/virt.nix
@@ -2,25 +2,18 @@
let
# https://stackoverflow.com/questions/75855410/nix-map-list-of-keys-to-attribute-set-members
attrSetRepeatValue = value: list:
- let
- acc = { }; # accumulator
- in
- builtins.foldl' (acc: key: acc // { "${key}" = value; }) acc list;
-in
-{
- users.users = attrSetRepeatValue
- { extraGroups = [ "libvirtd" ]; }
- virt-users;
+ let acc = { }; # accumulator
+ in builtins.foldl' (acc: key: acc // { "${key}" = value; }) acc list;
+in {
+ users.users = attrSetRepeatValue { extraGroups = [ "libvirtd" ]; } virt-users;
- home-manager.users = attrSetRepeatValue
- {
- home.packages = [ pkgs.quickemu ];
- dconf.settings."org/virt-manager/virt-manager/connections" = {
- autoconnect = [ "qemu:///system" ];
- uris = [ "qemu:///system" ];
- };
- }
- virt-users;
+ home-manager.users = attrSetRepeatValue {
+ home.packages = [ pkgs.quickemu ];
+ dconf.settings."org/virt-manager/virt-manager/connections" = {
+ autoconnect = [ "qemu:///system" ];
+ uris = [ "qemu:///system" ];
+ };
+ } virt-users;
programs.virt-manager.enable = true;
virtualisation.libvirtd = {