From c3c7500396bc80a467a6c7acd23b2da843f0ebcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 17 Nov 2025 10:41:03 +0100 Subject: [PATCH] flake: remove prismo config --- flake.nix | 16 ---- hosts/prismo/configuration.nix | 103 ------------------------ hosts/prismo/default.nix | 14 ---- hosts/prismo/hardware-configuration.nix | 54 ------------- 4 files changed, 187 deletions(-) delete mode 100644 hosts/prismo/configuration.nix delete mode 100644 hosts/prismo/default.nix delete mode 100644 hosts/prismo/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 249d26e..e0ee926 100644 --- a/flake.nix +++ b/flake.nix @@ -77,22 +77,6 @@ { formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-tree; nixosConfigurations = { - prismo = nixpkgs.lib.nixosSystem { - inherit system; - specialArgs = { - inherit inputs self user; - }; - modules = [ - ( - { config, pkgs, ... }: - { - nixpkgs.overlays = commonOverlays; - } - ) - ./hosts/prismo - sops-nix.nixosModules.sops - ]; - }; magicman = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { diff --git a/hosts/prismo/configuration.nix b/hosts/prismo/configuration.nix deleted file mode 100644 index 51ff5e7..0000000 --- a/hosts/prismo/configuration.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: - -{ - imports = [ ./hardware-configuration.nix ]; - - # Sops stuff - sops.defaultSopsFile = ../../secrets/prismo/secrets.yaml; - sops.age.keyFile = "/var/lib/sops-nix/key.txt"; - sops.age.generateKey = true; - sops.secrets."gotify_tokens/backup-home" = { }; - - # Bootloader stuff - boot.kernelParams = [ - "quiet" - "splash" - "rd.systemd.show_status=false" - ]; - boot.loader.systemd-boot = { - enable = true; - configurationLimit = 10; - }; - boot.loader.efi = { - canTouchEfiVariables = true; - }; - - # Networking stuff - networking.hostName = "prismo"; # Define your hostname. - networking.networkmanager.enable = true; - networking.nftables.enable = true; - networking.firewall = { - enable = true; - }; - - # Set time stuff - time.timeZone = "Europe/Oslo"; - - # Enable opengl - hardware.graphics = { - enable = true; - extraPackages = with pkgs; [ - intel-media-driver - vaapiVdpau - libvdpau-va-gl - ]; - }; - - # Setup hyprland - services.xserver.enable = true; - programs.hyprland = { - enable = true; - xwayland.enable = true; - portalPackage = pkgs.xdg-desktop-portal-hyprland; - }; - - # Setup common XDG env vars - environment.sessionVariables = rec { - XDG_CACHE_HOME = "$HOME/.cache"; - XDG_CONFIG_HOME = "$HOME/.config"; - XDG_DATA_HOME = "$HOME/.local/share"; - XDG_STATE_HOME = "$HOME/.local/state"; - XDG_BIN_HOME = "$HOME/.local/bin"; - PATH = [ "${XDG_BIN_HOME}" ]; - }; - - # Setup xdg portal - xdg.portal = { - enable = true; - xdgOpenUsePortal = true; - extraPortals = ( - with pkgs; - [ - xdg-desktop-portal-hyprland - xdg-desktop-portal-gtk - ] - ); - }; - - # Enable flakes - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; - - nixpkgs.config.allowUnfree = true; - # Install system-wide packages - environment.systemPackages = with pkgs; [ - vim - wget - curl - git - ]; - - # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, - # and migrated your data accordingly. - # - # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . - system.stateVersion = "23.11"; # Did you read the comment? -} diff --git a/hosts/prismo/default.nix b/hosts/prismo/default.nix deleted file mode 100644 index a709319..0000000 --- a/hosts/prismo/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ - inputs, - self, - pks, - ... -}: -{ - imports = [ - ./configuration.nix - ./hardware-configuration.nix - ../../system - ../../home/prismo.nix - ]; -} diff --git a/hosts/prismo/hardware-configuration.nix b/hosts/prismo/hardware-configuration.nix deleted file mode 100644 index f5618df..0000000 --- a/hosts/prismo/hardware-configuration.nix +++ /dev/null @@ -1,54 +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" - "ahci" - "usb_storage" - "sd_mod" - "rtsx_pci_sdmmc" - ]; - kernelModules = [ ]; - - luks.devices."cryptroot".device = "/dev/disk/by-uuid/f71b0ace-f38f-435f-a07a-007f9cfe4919"; - }; - kernelModules = [ "kvm-intel" ]; - extraModulePackages = [ ]; - }; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/91a0dbc4-426f-4b7b-a49e-063d1d0e59fb"; - fsType = "xfs"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/AF2D-FAD0"; - fsType = "vfat"; - }; - - swapDevices = [ { device = "/dev/disk/by-uuid/67da36a8-69df-4541-88cd-cba7cbc40b4c"; } ]; - - # 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.enp0s31f6.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}