From 83c316540912a1cf151ee91f6c5c5da83016da99 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 15 Jun 2025 23:53:52 +0300 Subject: [PATCH] formatting --- hosts/wallfacer/hardware-configuration.nix | 62 ++++++++++++---------- modules/services/vscode-server.nix | 6 ++- 2 files changed, 38 insertions(+), 30 deletions(-) diff --git a/hosts/wallfacer/hardware-configuration.nix b/hosts/wallfacer/hardware-configuration.nix index 73bb21e..79297e2 100644 --- a/hosts/wallfacer/hardware-configuration.nix +++ b/hosts/wallfacer/hardware-configuration.nix @@ -1,43 +1,47 @@ # 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 = [ "ahci" "ehci_pci" "megaraid_sas" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["ahci" "ehci_pci" "megaraid_sas" "nvme" "usbhid" "usb_storage" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-intel"]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/8270dba5-6d89-438a-90bd-d9f29b20cb5b"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/8270dba5-6d89-438a-90bd-d9f29b20cb5b"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/A1EB-43F8"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/A1EB-43F8"; + fsType = "vfat"; + options = ["fmask=0077" "dmask=0077"]; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/534ea30c-2664-498b-915f-41b037eba01b"; } - ]; + swapDevices = [ + {device = "/dev/disk/by-uuid/534ea30c-2664-498b-915f-41b037eba01b";} + ]; # 2 tb mini hdd - fileSystems."/data/atreus" = - { device = "/dev/disk/by-uuid/1840c2af-fdb2-48b6-8555-2cecd1afb106"; - fsType = "ext4"; - }; + fileSystems."/data/atreus" = { + device = "/dev/disk/by-uuid/1840c2af-fdb2-48b6-8555-2cecd1afb106"; + fsType = "ext4"; + }; # 500 gb nvme pcie - fileSystems."/data/kasio" = - { device = "/dev/disk/by-uuid/af74aa48-8513-4e31-a4b7-9fdd138e0002"; - fsType = "ext4"; - }; + fileSystems."/data/kasio" = { + device = "/dev/disk/by-uuid/af74aa48-8513-4e31-a4b7-9fdd138e0002"; + fsType = "ext4"; + }; # 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 # still possible to use this option, but it's recommended to use it in conjunction diff --git a/modules/services/vscode-server.nix b/modules/services/vscode-server.nix index 71619d3..fbdd931 100644 --- a/modules/services/vscode-server.nix +++ b/modules/services/vscode-server.nix @@ -1,4 +1,8 @@ -{config, pkgs, ...}: { +{ + config, + pkgs, + ... +}: { services.code-server = { enable = true; port = 4444;