diff options
Diffstat (limited to 'hosts/adam')
| -rw-r--r-- | hosts/adam/configuration.nix | 82 | ||||
| -rw-r--r-- | hosts/adam/hardware-configuration.nix | 35 |
2 files changed, 0 insertions, 117 deletions
diff --git a/hosts/adam/configuration.nix b/hosts/adam/configuration.nix deleted file mode 100644 index 609d831..0000000 --- a/hosts/adam/configuration.nix +++ /dev/null @@ -1,82 +0,0 @@ -{ - pkgs, - ... -}: - -let - username = "schererleander"; -in -{ - imports = [ - ./hardware-configuration.nix - ]; - - boot = { - kernelPackages = pkgs.linuxPackages_latest; - kernelParams = [ "amd_pstate=active" ]; - initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device = - "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830"; - loader = { - timeout = 0; - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - }; - - # Graphics - hardware.graphics = { - enable = true; - enable32Bit = true; - }; - - networking.networkmanager.enable = true; - - # Localisation - time.timeZone = "Europe/Berlin"; - i18n.defaultLocale = "en_US.UTF-8"; - i18n.extraLocaleSettings = { - LC_ADDRESS = "de_DE.UTF-8"; - LC_IDENTIFICATION = "de_DE.UTF-8"; - LC_MEASUREMENT = "de_DE.UTF-8"; - LC_MONETARY = "de_DE.UTF-8"; - LC_NAME = "de_DE.UTF-8"; - LC_NUMERIC = "de_DE.UTF-8"; - LC_PAPER = "de_DE.UTF-8"; - LC_TELEPHONE = "de_DE.UTF-8"; - LC_TIME = "de_DE.UTF-8"; - }; - - # Disable waiting for network to be online - systemd.services.NetworkManager-wait-online.enable = false; - - programs.dconf.enable = true; - - nx = { - plymouth.enable = true; - desktop.kde.enable = true; - dns.enable = true; - hardware.bluetooth.enable = true; - }; - - # User configuration - users.users.${username} = { - isNormalUser = true; - home = "/home/${username}"; - shell = pkgs.zsh; - ignoreShellProgramCheck = true; - extraGroups = [ - "wheel" - "networkmanager" - "video" - "input" - ]; - }; - - home-manager.users.${username} = { - imports = [ ../../home/schererleander.nix ]; - home.username = username; - home.homeDirectory = "/home/${username}"; - }; - - system.stateVersion = "25.11"; -} diff --git a/hosts/adam/hardware-configuration.nix b/hosts/adam/hardware-configuration.nix deleted file mode 100644 index 7f2052d..0000000 --- a/hosts/adam/hardware-configuration.nix +++ /dev/null @@ -1,35 +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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/mapper/luks-37471d57-a31d-4bf1-b219-9992bafe7b64"; - fsType = "ext4"; - }; - - boot.initrd.luks.devices."luks-37471d57-a31d-4bf1-b219-9992bafe7b64".device = "/dev/disk/by-uuid/37471d57-a31d-4bf1-b219-9992bafe7b64"; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/8E50-FCCA"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/mapper/luks-803851e9-7fa8-4367-a927-0bb76d0fe830"; } - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} |
