From 133ef4bd646e1a723c870590b371c0f63d37c6d2 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 3 Nov 2022 16:42:41 -0400 Subject: [PATCH] x1c7 no more --- systems/laptops/x1c7.nix | 81 ---------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 systems/laptops/x1c7.nix diff --git a/systems/laptops/x1c7.nix b/systems/laptops/x1c7.nix deleted file mode 100644 index 44a64e6..0000000 --- a/systems/laptops/x1c7.nix +++ /dev/null @@ -1,81 +0,0 @@ -{ 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? -}