{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/disk/by-uuid/eca209c7-aef3-4854-baf0-a82deeba3791"; fsType = "ext4"; }; boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/c9c2c496-6ae0-4310-bd74-c180847f3774"; fileSystems."/boot" = { device = "/dev/disk/by-uuid/B3E6-2C4C"; fsType = "vfat"; }; # If X1C7 throttling is already shit (and working docked), put this in "performance" mode. # See also: https://discourse.nixos.org/t/how-to-switch-cpu-governor-on-battery-power/8446/5 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.pulseaudio.enable = true; hardware.pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired. hardware.bluetooth.enable = true; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_latest; boot.supportedFilesystems = [ "ntfs" ]; nix = { package = pkgs.nixFlakes; extraOptions = '' experimental-features = nix-command flakes ''; }; networking.hostName = "thin"; networking.networkmanager = { enable = true; wifi = { backend = "iwd"; }; }; # The global useDHCP flag is deprecated, therefore explicitly set to false here. # Per-interface useDHCP will be mandatory in the future, so this generated config # replicates the default behaviour. networking.useDHCP = false; #networking.interfaces.enp0s31f6.useDHCP = true; #networking.interfaces.wlp0s20f3.useDHCP = true; services.openssh.enable = true; services = { syncthing = { enable = true; user = "srid"; dataDir = "/home/srid"; }; }; users.users.srid = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "audio" "video" ]; }; # 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 # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "21.11"; # Did you read the comment? }