From 3b9ca4e2fb3514c772cb56892629437f99e7e946 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 6 May 2025 14:51:09 +0200 Subject: [PATCH] remove zelden --- flake.nix | 10 -- hosts/zelden/configuration.nix | 152 ------------------------ hosts/zelden/hardware-configuration.nix | 39 ------ hosts/zelden/root.nix | 101 ---------------- hosts/zelden/wim.nix | 52 -------- 5 files changed, 354 deletions(-) delete mode 100644 hosts/zelden/configuration.nix delete mode 100644 hosts/zelden/hardware-configuration.nix delete mode 100644 hosts/zelden/root.nix delete mode 100644 hosts/zelden/wim.nix diff --git a/flake.nix b/flake.nix index 3e1ccf4..f389767 100644 --- a/flake.nix +++ b/flake.nix @@ -133,16 +133,6 @@ ./hosts/muos/configuration.nix ]; }; - zelden = nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs; - }; - modules = [ - inputs.home-manager.nixosModules.default - inputs.stylix.nixosModules.stylix - ./hosts/zelden/configuration.nix - ]; - }; }; nixosModules = { automapaper = ./modules/automapaper; diff --git a/hosts/zelden/configuration.nix b/hosts/zelden/configuration.nix deleted file mode 100644 index dc0f979..0000000 --- a/hosts/zelden/configuration.nix +++ /dev/null @@ -1,152 +0,0 @@ -{ - config, - lib, - pkgs, - inputs, - nix-colors, - ... -}: -{ - imports = [ ./hardware-configuration.nix ]; - - boot.loader = { - systemd-boot.enable = false; - efi.canTouchEfiVariables = true; - grub = { - enable = true; - efiSupport = true; - useOSProber = true; - device = "nodev"; - }; - }; - - hardware = { - enableRedistributableFirmware = true; - graphics.enable = true; - nvidia = { - modesetting.enable = true; - powerManagement.enable = true; - open = true; - nvidiaSettings = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - }; - - home-manager = { - extraSpecialArgs = { - inherit inputs nix-colors; - }; - users = { - "noa" = ( - import ../../common/home { - enableGraphical = true; - enableFlut = false; - enableGames = false; - displays = [ - { - name = "DP-6"; - horizontal = 3840; - vertical = 1200; - horizontal-offset = 0; - vertical-offset = 0; - refresh-rate = 100; - scale = "1"; - } - ]; - extraConfig = { - programs.btop.package = pkgs.btop.overrideAttrs (oldAttrs: { - cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [ - "-DBTOP_GPU=ON" - ]; - }); - }; - } - ); - "wim" = (import ./wim.nix); - }; - }; - - networking = { - hostName = "zelden"; - firewall.allowedTCPPorts = [ ]; - firewall.allowedUDPPorts = [ ]; - }; - - nixpkgs.config.allowUnfree = true; - - programs = { - gnupg.agent = { - enable = true; - enableSSHSupport = true; - pinentry.package = pkgs.pinentry-qt; - }; - - niri = { - enable = true; - package = inputs.niri.packages.${pkgs.system}.niri; - }; - - zsh.enable = true; - }; - - services = { - desktopManager.plasma6.enable = true; - displayManager.sddm = { - enable = true; - wayland.enable = true; - }; - xserver.videoDrivers = [ "nvidia" ]; - pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - jack.enable = true; - }; - thermald.enable = true; - }; - - security = { - rtkit.enable = true; - polkit.enable = true; - sudo.execWheelOnly = true; - }; - - system = { - switch.enableNg = true; - rebuild.enableNg = true; - stateVersion = "25.05"; - }; - - users.users = { - wim = { - isNormalUser = true; - description = "Wim"; - extraGroups = [ - "wheel" - ]; - }; - noa = { - isNormalUser = true; - description = "Noa Aarts"; - extraGroups = [ - "networkmanager" - "wheel" - "docker" - "wireshark" - "dialout" - ]; - hashedPassword = "$6$rounds=512400$Zip3xoK2zcoR4qEL$N13YTHO5tpWfx2nKb1sye.ZPwfoRtMQ5f3YrMZqKzzoFoSSHHJ.l5ulCEa9HygFxZmBtPnwlseFEtl8ERnwF50"; - openssh.authorizedKeys.keys = (import ../../common/ssh-keys.nix); - }; - }; - - virtualisation.docker = { - enable = true; - package = pkgs.docker_27; - rootless = { - enable = true; - setSocketVariable = true; - }; - }; -} diff --git a/hosts/zelden/hardware-configuration.nix b/hosts/zelden/hardware-configuration.nix deleted file mode 100644 index 2cb7178..0000000 --- a/hosts/zelden/hardware-configuration.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - config, - lib, - modulesPath, - ... -}: -{ - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot = { - initrd.availableKernelModules = [ - "nvme" - "xhci_pci" - "ahci" - "usb_storage" - "usbhid" - ]; - initrd.kernelModules = [ ]; - kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; - }; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/421f2811-e8eb-4a8e-8f09-a5e11b71fdcd"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/3EFA-7FDD"; - fsType = "vfat"; - }; - - networking.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/zelden/root.nix b/hosts/zelden/root.nix deleted file mode 100644 index 8d00930..0000000 --- a/hosts/zelden/root.nix +++ /dev/null @@ -1,101 +0,0 @@ -{ - config, - pkgs, - inputs, - ... -}: - -{ - imports = [ - ../../modules/applications - ]; - # Home Manager needs a bit of information about you and the paths it should - # manage. - home.username = "root"; - home.homeDirectory = "/root"; - - # This value determines the Home Manager release that your configuration is - # compatible with. This helps avoid breakage when a new Home Manager release - # introduces backwards incompatible changes. - # - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "23.11"; # Please read the comment before changing. - - nixpkgs.config.allowUnfree = true; - - # The home.packages option allows you to install Nix packages into your - # environment. - home.packages = with pkgs; [ - file - unzip - zip - - dig - mtr - - kitty - lsd - ]; - - modules = { - apps = { - git = { - enable = true; - name = "Noa Aarts (bot)"; - email = "noa@voorwaarts.nl"; - }; - }; - }; - - # Home Manager is pretty good at managing dotfiles. The primary way to manage - # plain files is through 'home.file'. - home.file = { - # # Building this configuration will create a copy of 'dotfiles/screenrc' in - # # the Nix store. Activating the configuration will then make '~/.screenrc' a - # # symlink to the Nix store copy. - # ".screenrc".source = dotfiles/screenrc; - - # # You can also set the file content immediately. - # ".gradle/gradle.properties".text = '' - # org.gradle.console=verbose - # org.gradle.daemon.idletimeout=3600000 - # ''; - }; - - # Home Manager can also manage your environment variables through - # 'home.sessionVariables'. If you don't want to manage your shell through Home - # Manager then you have to manually source 'hm-session-vars.sh' located at - # either - # - # ~/.nix-profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh - # - # or - # - # /etc/profiles/per-user/noa/etc/profile.d/hm-session-vars.sh - # - home.sessionVariables = { - EDITOR = "nvim"; - TERM = "kitty"; - }; - - xdg.userDirs.enable = true; - xdg.userDirs.createDirectories = true; - - dconf = { - enable = true; - settings = { - "org/gnome/desktop/interface" = { - color-scheme = "prefer-dark"; - }; - }; - }; - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; -} diff --git a/hosts/zelden/wim.nix b/hosts/zelden/wim.nix deleted file mode 100644 index 7ffe405..0000000 --- a/hosts/zelden/wim.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - pkgs, - ... -}: -{ - home = { - homeDirectory = "/home/wim"; - packages = with pkgs; [ - # Add programs you want installed here if they don't have a `programs` entry - firefox - mtr - ]; - preferXdgDirectories = true; - stateVersion = "23.11"; - username = "wim"; - }; - - xdg = { - enable = true; - portal = { - enable = true; - extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ]; - config.common.default = "*"; - }; - userDirs = { - enable = true; - createDirectories = true; - }; - }; - - nixpkgs.config.allowUnfree = true; - - programs = { - home-manager.enable = true; - man.enable = true; - ssh = { - enable = true; - compression = true; - # you can add matchBlocks from the ssh config here to your liking - matchBlocks = { - # "github" = { - # host = "github.com"; - # hostname = "github.com"; - # identityFile = "~/.ssh/id_rsa_yubikey.pub"; - # identitiesOnly = true; - # port = 22; - # user = "git"; - # }; - }; - }; - }; -}