From e29e0fefd61a3649770a69d08f38479d79b260e0 Mon Sep 17 00:00:00 2001 From: k Date: Mon, 10 Feb 2025 14:29:34 +0000 Subject: [PATCH] formating --- hosts/desktop/configuration.nix | 10 +++--- hosts/desktop/hardware-configuration.nix | 42 ++++++++++++---------- hosts/desktop/home.nix | 44 ++++++++++++------------ hosts/home/home_common.nix | 8 ++--- 4 files changed, 54 insertions(+), 50 deletions(-) diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 9bd2083..897e9d3 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -42,8 +42,8 @@ defaultRuntime = true; autoStart = true; }; - xserver.enable = true; - displayManager.sddm.enable = true; + xserver.enable = true; + displayManager.sddm.enable = true; desktopManager.plasma6.enable = true; }; @@ -68,12 +68,12 @@ package = pkgs.nerdfonts; name = "Iosevka NF"; }; - + sansSerif = { package = pkgs.nerdfonts; name = "Iosevka NF"; }; - + monospace = { package = pkgs.nerdfonts; name = "Iosevka NFM"; @@ -120,7 +120,7 @@ backupFileExtension = "bk"; users = {"k" = import ./home.nix;}; }; - + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index aa24003..ff5f606 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -1,30 +1,34 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/aace1ae9-2a8f-4a90-9e0b-cb21779636d2"; - fsType = "btrfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/aace1ae9-2a8f-4a90-9e0b-cb21779636d2"; + fsType = "btrfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/8D75-F095"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/8D75-F095"; + fsType = "vfat"; + options = ["fmask=0022" "dmask=0022"]; + }; - swapDevices = [ ]; + swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix index 82a1bd8..17626dc 100644 --- a/hosts/desktop/home.nix +++ b/hosts/desktop/home.nix @@ -21,27 +21,27 @@ khronos-ocl-icd-loader ]; }; - -# For WiVRn: -xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json"; -xdg.configFile."openvr/openvrpaths.vrpath".text = '' - { - "config" : - [ - "${config.xdg.dataHome}/Steam/config" - ], - "external_drivers" : null, - "jsonid" : "vrpathreg", - "log" : - [ - "${config.xdg.dataHome}/Steam/logs" - ], - "runtime" : - [ - "${pkgs.opencomposite}/lib/opencomposite" - ], - "version" : 1 - } -''; + # For WiVRn: + xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json"; + + xdg.configFile."openvr/openvrpaths.vrpath".text = '' + { + "config" : + [ + "${config.xdg.dataHome}/Steam/config" + ], + "external_drivers" : null, + "jsonid" : "vrpathreg", + "log" : + [ + "${config.xdg.dataHome}/Steam/logs" + ], + "runtime" : + [ + "${pkgs.opencomposite}/lib/opencomposite" + ], + "version" : 1 + } + ''; } diff --git a/hosts/home/home_common.nix b/hosts/home/home_common.nix index 1ec3761..77f9f1e 100644 --- a/hosts/home/home_common.nix +++ b/hosts/home/home_common.nix @@ -23,10 +23,10 @@ cat = "bat"; }; extraConfig = '' - $env.config = { - show_banner: false, - } - ''; + $env.config = { + show_banner: false, + } + ''; }; carapace = { enable = true;