From 333f134ec64739abf0c3e46e59a4a8ad88b883b5 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 4 Jul 2024 22:58:28 +0200 Subject: formatting --- share/system/client-common.nix | 11 +++-------- share/system/virt.nix | 29 +++++++++++------------------ 2 files changed, 14 insertions(+), 26 deletions(-) (limited to 'share/system') 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 = { -- cgit v1.3.1