diff --git a/hosts/beleap-thinkpad/configuration.nix b/hosts/beleap-thinkpad/configuration.nix deleted file mode 100644 index 0365c6b..0000000 --- a/hosts/beleap-thinkpad/configuration.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ pkgs, ... }: -rec { - imports = - [ - ./hardware-configuration.nix - (import ../common/configuration.nix { - inherit pkgs; - lib = pkgs.lib; - hostname = networking.hostName; - }) - (import ../common/nixos.nix { - inherit pkgs; - lib = pkgs.lib; - }) - ../common/laptop.nix - ]; - - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - system.stateVersion = "23.05"; - networking.hostName = "beleap-thinkpad"; - swapDevices = [ - { - device = "/var/lib/swapfile"; - size = 4 * 1024; - } - ]; - zramSwap.enable = true; - - services = { - fprintd = { - enable = true; - }; - }; - security.pam.services = - let - defaultPamService = '' - # Account management. - account required pam_unix.so # unix (order 10900) - - # Authentication management. - auth sufficient pam_unix.so likeauth try_first_pass # unix (order 11600) - auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so # fprintd (order 11400) - auth required pam_deny.so # deny (order 12400) - - # Password management. - password sufficient pam_unix.so nullok yescrypt # unix (order 10200) - - # Session management. - session required pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100) - session required pam_unix.so # unix (order 10200) - ''; - in - { - swaylock.text = defaultPamService; - polkit-1.text = defaultPamService; - }; - - nix.settings.experimental-features = [ "nix-command" "flakes" ]; -} diff --git a/hosts/beleap-thinkpad/hardware-configuration.nix b/hosts/beleap-thinkpad/hardware-configuration.nix deleted file mode 100644 index d2bf8da..0000000 --- a/hosts/beleap-thinkpad/hardware-configuration.nix +++ /dev/null @@ -1,41 +0,0 @@ -# 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 = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { - device = "/dev/disk/by-uuid/6601b8d4-16d2-45dd-a83e-311c4caceaa1"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { - device = "/dev/disk/by-uuid/A39C-3E6E"; - 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.wlp0s20f3.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}