diff --git a/.config/linux/nix/desktop.nix b/.config/linux/nix/desktop/configuration.nix similarity index 96% rename from .config/linux/nix/desktop.nix rename to .config/linux/nix/desktop/configuration.nix index caf56c8..c079573 100644 --- a/.config/linux/nix/desktop.nix +++ b/.config/linux/nix/desktop/configuration.nix @@ -29,7 +29,6 @@ # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; - i18n.extraLocaleSettings = { LC_ADDRESS = "ru_RU.UTF-8"; LC_IDENTIFICATION = "ru_RU.UTF-8"; @@ -42,21 +41,27 @@ LC_TIME = "ru_RU.UTF-8"; }; - # Enable the X11 windowing system. + # Enable the X11 windowing system (required for GUI). services.xserver.enable = true; # Enable the GNOME Desktop Environment. services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true; - # Configure keymap in X11 + # Configure keymap in X11. services.xserver = { layout = "us"; xkbVariant = ""; }; # Enable CUPS to print documents. - services.printing.enable = true; + services.printing = { + enable = true; + clientConf = '' + DigestOptions DenyMD5 + ServerName 192.168.1.2 + ''; + }; # Enable sound with pipewire. sound.enable = true; diff --git a/.config/linux/nix/desktop/hardware-configuration.nix b/.config/linux/nix/desktop/hardware-configuration.nix new file mode 100644 index 0000000..f357380 --- /dev/null +++ b/.config/linux/nix/desktop/hardware-configuration.nix @@ -0,0 +1,38 @@ +# 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") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/fea39df0-7f07-4c33-88e8-0777ef0d3764"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/CEBE-053D"; + fsType = "vfat"; + }; + + 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 + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp42s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}