summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/common/default.nix77
-rw-r--r--nixos/common/services.nix27
-rw-r--r--nixos/desktop/apps.nix13
-rw-r--r--nixos/desktop/default.nix67
-rw-r--r--nixos/desktop/hyprland.nix46
-rw-r--r--nixos/desktop/xfce.nix26
-rw-r--r--nixos/flake.lock49
-rw-r--r--nixos/flake.nix47
-rw-r--r--nixos/hosts/apocalypse/backup.nix27
-rw-r--r--nixos/hosts/apocalypse/default.nix88
-rw-r--r--nixos/hosts/apocalypse/firewall.nix50
-rw-r--r--nixos/hosts/apocalypse/hardware-configuration.nix91
-rw-r--r--nixos/hosts/apocalypse/nvidia.nix55
-rw-r--r--nixos/hosts/crank-vm/default.nix20
-rw-r--r--nixos/hosts/crank-vm/hardware-configuration.nix65
-rw-r--r--nixos/hosts/icetea-dispenser/GrubBG.pngbin4109858 -> 0 bytes
-rw-r--r--nixos/hosts/icetea-dispenser/default.nix49
-rw-r--r--nixos/hosts/icetea-dispenser/hardware-configuration.nix155
18 files changed, 0 insertions, 952 deletions
diff --git a/nixos/common/default.nix b/nixos/common/default.nix
deleted file mode 100644
index b199ca5..0000000
--- a/nixos/common/default.nix
+++ /dev/null
@@ -1,77 +0,0 @@
-
-# Edit this configuration file to define what should be installed on
-# your system. Help is available in the configuration.nix(5) man page, on
-# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
-
-{ config, lib, pkgs, ... }:
-
-{
- imports =
- [ # Include the results of the hardware scan.
- ./services.nix
- ];
-
- nix.settings.experimental-features = ["nix-command" "flakes"];
- time.timeZone = "Europe/Amsterdam"; # Set timezone
-
- # Configure network proxy if necessary
- # networking.proxy.default = "http://user:password@proxy:port/";
- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
-
- # Select internationalisation properties.
- i18n.defaultLocale = "en_US.UTF-8";
- console = {
- font = "Lat2-Terminus16";
- keyMap = "us";
- # useXkbConfig = true; # use xkb.options in tty.
- };
-
- # Enable the X11 windowing system.
- # services.xserver.enable = true;
-
- # Define a user account. Don't forget to set a password with ‘passwd’.
- programs.zsh.enable = true;
- users.users.wilkuu = {
- shell = pkgs.zsh;
- isNormalUser = true;
- extraGroups = [ "wheel" "networkmanager" "input" "docker" "adbusers" "libvirtd" ]; # Enable ‘sudo’ for the user.
- packages = with pkgs; [
- tree
- home-manager
- ];
- };
-
- # Configure keymap in X11
- # services.xserver.xkb.layout = "us";
- # services.xserver.xkb.options = "eurosign:e,caps:escape";
-
-
- # programs.firefox.enable = true;
-
- # List packages installed in system profile. To search, run:
- environment.variables.EDITOR = "vim";
- # $ nix search wget
- environment.systemPackages = with pkgs; [
- vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
- wget
- git
- tmux
- usbutils
- lz4
- ];
-
- systemd.oomd = {
- enable = true;
- enableUserSlices = true;
- enableRootSlice = true;
- };
-
-
-
- # This option defines the first version of NixOS you have installed on this particular machine,
- # DO NOT CHANGE UNLESS USING NIXOS-INSTALL
-
- system.stateVersion = "24.11"; # Did you read the comment?
-
-}
-
diff --git a/nixos/common/services.nix b/nixos/common/services.nix
deleted file mode 100644
index 8a73d42..0000000
--- a/nixos/common/services.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{config, lib, pkgs, ...}:
-{
-
- ## VM's
- programs.dconf.enable = true;
- programs.virt-manager.enable = true;
- virtualisation = {
- docker.enable = true;
- libvirtd = {
- enable = true;
- qemu = {
- swtpm.enable = true;
- vhostUserPackages = with pkgs; [ virtiofsd ];
- ovmf.enable = true;
- ovmf.packages = [ pkgs.OVMFFull.fd ];
- };
- };
- spiceUSBRedirection.enable = true;
- };
- services.spice-vdagentd.enable = true;
-
- services.mullvad-vpn = {
- enable = true;
- package = pkgs.mullvad-vpn;
- };
-
-}
diff --git a/nixos/desktop/apps.nix b/nixos/desktop/apps.nix
deleted file mode 100644
index 68e5090..0000000
--- a/nixos/desktop/apps.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{pkgs, ...} :
-{
- environment.systemPackages = with pkgs; [
- neovim
- kitty
- ];
-
- programs.steam = {
- enable = true;
- protontricks.enable = true;
- gamescopeSession.enable = true;
- };
-}
diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix
deleted file mode 100644
index b987376..0000000
--- a/nixos/desktop/default.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-
-{pkgs, ...}:
-{
- imports = [
- ./apps.nix
- ./xfce.nix
- ./hyprland.nix
- ];
-
- programs = {
- dconf.enable = true;
- thunar = {
- enable = true;
- plugins = with pkgs.xfce; [
- thunar-archive-plugin
- thunar-media-tags-plugin
- thunar-volman
- ];
- };
- };
- # Enable CUPS to print documents.
- services.printing.enable = true;
-
-
- # Enable touchpad support (enabled default in most desktopManager).
- services.libinput.enable = true;
-
- services = {
- blueman.enable = true;
- # Enable sound
- pipewire = {
- enable = true;
- pulse.enable = true;
- };
-
- displayManager.sddm = {
- enable=true;
- wayland.enable = true;
- #theme = "catppuccin-mocha";
- };
-
- xserver = {
- enable = true;
- excludePackages = with pkgs; [
- xterm
- ];
- };
- };
-
- i18n.inputMethod = {
- type = "fcitx5";
- enable = true;
- fcitx5.addons = with pkgs; [
- fcitx5-gtk
- fcitx5-lua
- fcitx5-mozc
- catppuccin-fcitx5
- fcitx5-table-other
- ];
- };
-
- fonts.packages = with pkgs; [
- noto-fonts
- font-awesome
- nerd-fonts.hurmit
- ];
-}
diff --git a/nixos/desktop/hyprland.nix b/nixos/desktop/hyprland.nix
deleted file mode 100644
index 62b39ae..0000000
--- a/nixos/desktop/hyprland.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{pkgs, ...}: {
- environment.systemPackages = with pkgs; [
- hyprland
- hyprshot
- hyprkeys
- hypridle
- hyprpaper
- hyprpicker
- hyprnotify
- hyprcursor
- hyprpolkitagent
- waybar
- waybar-mpris
- ];
-
-
- services.xserver.exportConfiguration = true; # This makes it easy to search for a valid keymap
- # Enable KDE6 env in case Hyprland gets borked.
- # services.desktopManager.plasma6.enable = true;
- programs.hyprland.enable = true;
- programs.hyprland.withUWSM = true;
- programs.uwsm = {
- enable = true;
- waylandCompositors ={
- hyprland = {
- prettyName = "Hyprland";
- comment = "Hyprland compositor managed by UWSM";
- binPath = "/run/current-system/sw/bin/Hyprland";
- };
- };
- };
-
- xdg.portal = {
- enable = true;
- extraPortals = with pkgs; [ xdg-desktop-portal-hyprland xdg-desktop-portal-gtk ];
- config = {
- common = {
- default = [
- "hyprland"
- "gtk"
- ];
- "org.freedesktop.impl.portal.Filechooser"="gtk";
- };
- };
- };
-}
diff --git a/nixos/desktop/xfce.nix b/nixos/desktop/xfce.nix
deleted file mode 100644
index 563b205..0000000
--- a/nixos/desktop/xfce.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{pkgs, ...}:
-{
- environment.systemPackages = with pkgs; [
- # XFCE stuff
- xfce.catfish
- xfce.xfce4-appfinder
- xfce.xfce4-clipman-plugin
- xfce.xfce4-cpugraph-plugin
- xfce.xfce4-dict
- xfce.xfce4-fsguard-plugin
- xfce.xfce4-genmon-plugin
- xfce.xfce4-netload-plugin
- xfce.xfce4-panel
- xfce.xfce4-pulseaudio-plugin
- xfce.xfce4-systemload-plugin
- xfce.xfce4-weather-plugin
- xfce.xfce4-whiskermenu-plugin
- xfce.xfce4-xkb-plugin
- xfce.xfdashboard
-
- # GNOME stuff
- file-roller
- gnome-disk-utility
- ];
- services.xserver.desktopManager.xfce.enable = true;
-}
diff --git a/nixos/flake.lock b/nixos/flake.lock
deleted file mode 100644
index 359c4df..0000000
--- a/nixos/flake.lock
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "nodes": {
- "home-manager": {
- "inputs": {
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1751468302,
- "narHash": "sha256-tWosziZTT039x6PgEZUhzGlV8oLvdDmIgKTE8ESMaEA=",
- "owner": "nix-community",
- "repo": "home-manager",
- "rev": "501cfec8277f931a9c9af9f23d3105c537faeafe",
- "type": "github"
- },
- "original": {
- "owner": "nix-community",
- "ref": "release-25.05",
- "repo": "home-manager",
- "type": "github"
- }
- },
- "nixpkgs": {
- "locked": {
- "lastModified": 1751582995,
- "narHash": "sha256-u7ubvtxdTnFPpV27AHpgoKn7qHuE7sgWgza/1oj5nzA=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "7a732ed41ca0dd64b4b71b563ab9805a80a7d693",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixos-25.05",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "root": {
- "inputs": {
- "home-manager": "home-manager",
- "nixpkgs": "nixpkgs"
- }
- }
- },
- "root": "root",
- "version": 7
-}
diff --git a/nixos/flake.nix b/nixos/flake.nix
deleted file mode 100644
index 8bb7d06..0000000
--- a/nixos/flake.nix
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- description = "NixOS configuration";
-
- inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
- home-manager = {
- url = "github:nix-community/home-manager/release-25.05";
- inputs.nixpkgs.follows = "nixpkgs";
- };
- };
-
- outputs = { self, nixpkgs, home-manager, ... }: {
- nixosConfigurations.crank-vm = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [
- ./hosts/crank-vm
- ./desktop
- home-manager.nixosModules.home-manager {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- }
- ];
- };
- nixosConfigurations.icetea-dispenser = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [
- ./hosts/icetea-dispenser
- ./desktop
- home-manager.nixosModules.home-manager {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- }
- ];
- };
- nixosConfigurations.apocalypse = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [
- ./hosts/apocalypse
- ./desktop
- home-manager.nixosModules.home-manager {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- }
- ];
- };
- };
-}
diff --git a/nixos/hosts/apocalypse/backup.nix b/nixos/hosts/apocalypse/backup.nix
deleted file mode 100644
index 07386be..0000000
--- a/nixos/hosts/apocalypse/backup.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ config, lib, pkgs, modulesPath, ...}:
-{
- environment.systemPackages = with pkgs; [
- btrbk
- lz4
- ];
-
- services.btrbk = {
- extraPackages = with pkgs; [ lz4 ];
- instances."remote_vault" = {
- onCalendar = "weekly";
- settings = {
- ssh_identity = "/etc/vault_key"; # NOTE: must be readable by user/group btrbk
- ssh_user = "vaultmanager";
- stream_compress = "lz4";
- volume."/btrfs_root" = {
- target = "ssh://10.127.9.1/vault/backups/apocalypse";
- subvolume = {
- "@root" = {
- snapshot_create = "always";
- };
- };
- };
- };
- };
-};
-}
diff --git a/nixos/hosts/apocalypse/default.nix b/nixos/hosts/apocalypse/default.nix
deleted file mode 100644
index e57105c..0000000
--- a/nixos/hosts/apocalypse/default.nix
+++ /dev/null
@@ -1,88 +0,0 @@
- {pkgs, config, lib, ...}:
- {
- imports = [
- ./hardware-configuration.nix
- ../../common
- ./nvidia.nix
- ./backup.nix
- ./firewall.nix
- ];
- boot.loader.grub = {
- useOSProber = true;
- device = "nodev";
-
- efiSupport = true;
- default = "saved";
- memtest86.enable = true;
- # splashImage = ./GrubBG.png;
- };
- boot.loader.efi.canTouchEfiVariables = true;
- boot.initrd.systemd.enable = true;
- boot.crashDump.enable = false;
- boot.plymouth = {
- enable = true;
- theme = "bgrt";
- };
-
- boot.kernelParams = [
- "quiet"
- "splash"
- "loglevel=3"
- "rd.systemd.show_status=false"
- "rd.udev.log_level=3"
- "udev.logpriority=3"
- ];
- boot.consoleLogLevel = 0;
-
- networking.hostName = "apocalypse"; # Define your hostname.
- networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
-
- hardware.bluetooth.enable = true;
- hardware.bluetooth.settings = {
- General = {Enable = "Source,Sink,Media,Socket";};
- };
-
- hardware.bluetooth.powerOnBoot = true;
- services.blueman.enable = true;
-
- programs.nix-ld.enable = true;
- services.printing.enable = true;
- nixpkgs.config.allowUnfree = true;
-
-
- services.resolved = {
- enable = true;
- dnssec = "false";
- domains = [ "~." ];
- fallbackDns = [ ];
- dnsovertls = "opportunistic";
- };
-
-
- networking.useDHCP = lib.mkDefault true;
- networking.firewall.checkReversePath = false;
-
-
- # Thunderbolt
- services.hardware.bolt.enable = true;
- powerManagement.enable = true;
-
- # Firmware updates
- services.fwupd.enable = true;
-
- services.openssh = {
- enable = true;
- ports = [22];
- openFirewall = false;
- allowSFTP = false;
- settings = {
- PasswordAuthentication = false;
- AllowUsers = ["wilkuu"];
- X11Forwarding = false;
- PermitRootLogin = "no";
- PrintMotd = true;
- };
- };
-}
-
-
diff --git a/nixos/hosts/apocalypse/firewall.nix b/nixos/hosts/apocalypse/firewall.nix
deleted file mode 100644
index 5c73966..0000000
--- a/nixos/hosts/apocalypse/firewall.nix
+++ /dev/null
@@ -1,50 +0,0 @@
-{pkgs, config, ...}:
-let
- baseTCP = [
- 22000 # Syncthng
- ];
- baseUDP = [
- 22000 # Syncthing
- 22027 # Syncthing
- 16555 # Wireguard
- ];
- baseTCPRanges = [
- { from = 1714; to = 1764; } # KDE-CONNECT
- ];
- baseUDPRanges = [
- { from = 1714; to = 1764; } # KDE-CONNECT
- ];
-
- secureTCP = [
- 22 80 433 5900 # SSH HTTP VNC
- ];
-
- secureUDP = [
- 5900
- ];
-
- secureTCPRanges = [
-
- ];
- secureUDPRanges = [
-
- ];
-in
-{
- networking.firewall = {
- enable = false;
- allowedTCPPorts = baseTCP;
- allowedUDPPorts = baseUDP;
- allowedUDPPortRanges = baseUDPRanges;
- allowedTCPPortRanges = baseTCPRanges;
- interfaces = {
- "nix-laptop" = {
- allowedTCPPorts = secureTCP;
- allowedUDPPorts = secureUDP;
- allowedUDPPortRanges = secureUDPRanges;
- allowedTCPPortRanges = secureTCPRanges;
- };
- };
- };
-}
-
diff --git a/nixos/hosts/apocalypse/hardware-configuration.nix b/nixos/hosts/apocalypse/hardware-configuration.nix
deleted file mode 100644
index d8ae434..0000000
--- a/nixos/hosts/apocalypse/hardware-configuration.nix
+++ /dev/null
@@ -1,91 +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" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
- boot.initrd.kernelModules = [ "cryptd" "aesni_intel" ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
- boot.supportedFilesystems = [ "ntfs" "btrfs" "vfat" ];
- boot.loader.grub.extraEntries =
- ''
-menuentry 'UEFI Firmware' $menuentry_id_option 'uefi-firmware' {
- fwsetup
-}
- '';
-
- boot.initrd.luks.devices = {
- "cryptroot".device = "/dev/disk/by-uuid/d2c3c197-3d75-4da2-a098-207030a91b62";
- "cryptswap".device = "/dev/disk/by-uuid/fd6a5644-a33c-40af-ae48-42db1a5997ac";
- };
-
- fileSystems."/" =
- { device = "/dev/mapper/cryptroot";
- fsType = "btrfs";
- options = [ "subvol=@root" "compress=zstd" ];
- };
-
- fileSystems."/btrfs_root" = {
- device = "/dev/mapper/cryptroot";
- fsType = "btrfs";
- options = [ "subvolid=5" "compress=zstd"];
- };
-
-
- fileSystems."/snapshots" =
- { device = "/dev/mapper/cryptroot";
- fsType = "btrfs";
- options = [ "subvol=@snapshots" "compress=zstd" ];
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/6E1A-07F4";
- fsType = "vfat";
- options = [ "fmask=0077" "dmask=0077" ];
- };
-
- fileSystems."/store2" =
- { device = "/dev/disk/by-uuid/5368282f-c09d-44cf-9cf2-e69a2d415da6";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=/"];
- };
- fileSystems."/store1" =
- { device = "/dev/disk/by-uuid/6A2E2BFF2E2BC2C5";
- fsType = "ntfs-3g" ;
- options = ["rw" "uid=1000" "gid=100"];
- };
- fileSystems."/win_games" =
- { device = "/dev/disk/by-uuid/6A680789680752ED";
- fsType = "ntfs-3g" ;
- options = ["rw" "uid=1000" "gid=100"];
- };
- fileSystems."/windows" = {
- device = "/dev/disk/by-uuid/7AFA6C84FA6C3E8F";
- fsType = "ntfs-3g";
- options = ["rw" "uid=1000" "gid=100"];
- };
-
- swapDevices =
- [ { device = "/dev/mapper/cryptswap"; }
- ];
-
- # 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.<interface>.useDHCP`.
- networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.br-7bda29607d31.useDHCP = lib.mkDefault true;
- # networking.interfaces.docker0.useDHCP = lib.mkDefault true;
- # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
- # networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/nixos/hosts/apocalypse/nvidia.nix b/nixos/hosts/apocalypse/nvidia.nix
deleted file mode 100644
index ef95b43..0000000
--- a/nixos/hosts/apocalypse/nvidia.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{ config, lib, pkgs, modulesPath, ...}:
-{
- # Enable OpenGL
- hardware.graphics = {
- enable = true;
- };
-
- # Load nvidia driver for Xorg and Wayland
- services.xserver.videoDrivers = ["nvidia"];
-
- hardware.nvidia = {
-
- # Modesetting is required.
- modesetting.enable = true;
-
- # Nvidia power management. Experimental, and can cause sleep/suspend to fail.
- # Enable this if you have graphical corruption issues or application crashes after waking
- # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
- # of just the bare essentials.
- powerManagement.enable = false;
-
- # Fine-grained power management. Turns off GPU when not in use.
- # Experimental and only works on modern Nvidia GPUs (Turing or newer).
- powerManagement.finegrained = false;
-
- # Use the NVidia open source kernel module (not to be confused with the
- # independent third-party "nouveau" open source driver).
- # Support is limited to the Turing and later architectures. Full list of
- # supported GPUs is at:
- # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
- # Only available from driver 515.43.04+
- # Currently alpha-quality/buggy, so false is currently the recommended setting.
- open = false;
-
- # Enable the Nvidia settings menu,
- # accessible via `nvidia-settings`.
- nvidiaSettings = true;
-
- # Optionally, you may need to select the appropriate driver version for your specific GPU.
- package = config.boot.kernelPackages.nvidiaPackages.production;
-
- prime = {
- offload = {
- enable = true;
- enableOffloadCmd = true;
- };
-
- sync.enable = false;
-
- intelBusId = "PCI:0:2:0";
- nvidiaBusId = "PCI:1:0:0";
- };
- };
-
-}
diff --git a/nixos/hosts/crank-vm/default.nix b/nixos/hosts/crank-vm/default.nix
deleted file mode 100644
index 1415674..0000000
--- a/nixos/hosts/crank-vm/default.nix
+++ /dev/null
@@ -1,20 +0,0 @@
-{ config, inputs, pkgs, ...}:
-{
- imports = [
- ./hardware-configuration.nix
- ../../common
- ];
-
- networking.hostName = "crank-vm"; # Define your hostname.
- # Use the systemd-boot EFI boot loader.
- # boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- boot.loader.grub = {
- device = "nodev";
- useOSProber = true;
- efiSupport = true;
- default = "saved";
- memtest86.enable = true;
- };
- networking.firewall.enable = false;
-}
diff --git a/nixos/hosts/crank-vm/hardware-configuration.nix b/nixos/hosts/crank-vm/hardware-configuration.nix
deleted file mode 100644
index e73cd34..0000000
--- a/nixos/hosts/crank-vm/hardware-configuration.nix
+++ /dev/null
@@ -1,65 +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 + "/profiles/qemu-guest.nix")
- ];
-
- boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
-
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/4b8e866a-bbf0-4312-a134-e6369276ed60";
- fsType = "btrfs";
- options = [ "subvol=root" ];
- };
-
- boot.initrd.luks.devices."system".device = "/dev/disk/by-uuid/70bdaa2d-b736-417b-899e-50f6c61c0036";
-
- fileSystems."/home" =
- { device = "/dev/disk/by-uuid/4b8e866a-bbf0-4312-a134-e6369276ed60";
- fsType = "btrfs";
- options = [ "subvol=home" ];
- };
-
- fileSystems."/nix" =
- { device = "/dev/disk/by-uuid/4b8e866a-bbf0-4312-a134-e6369276ed60";
- fsType = "btrfs";
- options = [ "subvol=nix" ];
- };
-
- fileSystems."/snapshots" =
- { device = "/dev/disk/by-uuid/4b8e866a-bbf0-4312-a134-e6369276ed60";
- fsType = "btrfs";
- options = [ "subvol=snapshots" ];
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/D0B7-5718";
- fsType = "vfat";
- options = [ "fmask=0022" "dmask=0022" ];
- };
-
- 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.<interface>.useDHCP`.
- networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
-
- services = {
- qemuGuest.enable = true;
- spice-vdagentd.enable = true;
- };
-}
-
-
diff --git a/nixos/hosts/icetea-dispenser/GrubBG.png b/nixos/hosts/icetea-dispenser/GrubBG.png
deleted file mode 100644
index 0f5028f..0000000
--- a/nixos/hosts/icetea-dispenser/GrubBG.png
+++ /dev/null
Binary files differ
diff --git a/nixos/hosts/icetea-dispenser/default.nix b/nixos/hosts/icetea-dispenser/default.nix
deleted file mode 100644
index a8d4630..0000000
--- a/nixos/hosts/icetea-dispenser/default.nix
+++ /dev/null
@@ -1,49 +0,0 @@
- {pkgs, config, ...}:
- {
- imports = [
- ./hardware-configuration.nix
- ../../common
- ];
- boot.loader.grub = {
- useOSProber = true;
- device = "nodev";
-
-
- efiSupport = true;
- default = "saved";
- memtest86.enable = true;
- # splashImage = ./GrubBG.png;
- };
- boot.loader.efi.canTouchEfiVariables = true;
- boot.crashDump.enable = false;
- boot.plymouth = {
- enable = true;
- theme = "bgrt";
- };
-
- boot.kernelParams = [
- "quiet"
- "splash"
- "loglevel=3"
- "rd.systemd.show_status=false"
- "rd.udev.log_level=3"
- "udev.logpriority=3"
- ];
- boot.consoleLogLevel = 0;
-
- networking.hostName = "icetea-dispenser"; # Define your hostname.
- networking.firewall.enable = false;
- networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
-
- hardware.bluetooth.enable = true;
- hardware.bluetooth.settings = {
- General = {Enable = "Source,Sink,Media,Socket";};
- };
-
- hardware.bluetooth.powerOnBoot = true;
- services.blueman.enable = true;
-
- programs.nix-ld.enable = true;
- services.printing.enable = true;
- nixpkgs.config.allowUnfree = true;
-}
diff --git a/nixos/hosts/icetea-dispenser/hardware-configuration.nix b/nixos/hosts/icetea-dispenser/hardware-configuration.nix
deleted file mode 100644
index 7ae80aa..0000000
--- a/nixos/hosts/icetea-dispenser/hardware-configuration.nix
+++ /dev/null
@@ -1,155 +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" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
- boot.initrd.kernelModules = [ "aesni_intel" "cryptd" ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
- boot.supportedFilesystems = [ "ntfs" "btrfs" "vfat" ];
- # GRUB 2 with UEFI example, chainloading another distro
- boot.loader.grub.extraEntries =
- ''
-menuentry 'UEFI Firmware' $menuentry_id_option 'uefi-firmware' {
- fwsetup
-}
- '';
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/f75781bf-b2bf-4bb0-915d-95193e8eee9e";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=root" ];
- };
-
- fileSystems."/home" =
- { device = "/dev/disk/by-uuid/f75781bf-b2bf-4bb0-915d-95193e8eee9e";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=home" ];
- };
-
- fileSystems."/nix" =
- { device = "/dev/disk/by-uuid/f75781bf-b2bf-4bb0-915d-95193e8eee9e";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=nix" ];
- };
-
- fileSystems."/snapshots" =
- { device = "/dev/disk/by-uuid/f75781bf-b2bf-4bb0-915d-95193e8eee9e";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=snapshots" ];
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/6E1A-07F4";
- fsType = "vfat";
- options = [ "fmask=0077" "dmask=0077" ];
- };
-
- fileSystems."/store2" =
- { device = "/dev/disk/by-uuid/5368282f-c09d-44cf-9cf2-e69a2d415da6";
- fsType = "btrfs";
- options = [ "noatime" "compress=zstd" "subvol=/"];
- };
- fileSystems."/store1" =
- { device = "/dev/disk/by-uuid/6A2E2BFF2E2BC2C5";
- fsType = "ntfs-3g" ;
- options = ["rw" "uid=1000" "gid=100"];
- };
- fileSystems."/win_games" =
- { device = "/dev/disk/by-uuid/6A680789680752ED";
- fsType = "ntfs-3g" ;
- options = ["rw" "uid=1000" "gid=100"];
- };
-
-
-
- swapDevices =
- [ { device = "/dev/disk/by-uuid/f1dfc6a1-55f3-4148-9f1d-2a998c3b3168"; }
- ];
-
- # Thunderbolt
- services.hardware.bolt.enable = true;
- powerManagement.enable = true;
-
- # 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.<interface>.useDHCP`.
- # networking.nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
-
- services.resolved = {
- enable = true;
- dnssec = "false";
- domains = [ "~." ];
- fallbackDns = [ ];
- dnsovertls = "opportunistic";
- };
-
-
- networking.useDHCP = lib.mkDefault true;
- networking.firewall.checkReversePath = false;
-
- # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
- # networking.interfaces.enp81s0u1u4.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-
- # Enable OpenGL
- hardware.graphics = {
- enable = true;
- };
-
- # Load nvidia driver for Xorg and Wayland
- services.xserver.videoDrivers = ["nvidia"];
-
- hardware.nvidia = {
-
- # Modesetting is required.
- modesetting.enable = true;
-
- # Nvidia power management. Experimental, and can cause sleep/suspend to fail.
- # Enable this if you have graphical corruption issues or application crashes after waking
- # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
- # of just the bare essentials.
- powerManagement.enable = false;
-
- # Fine-grained power management. Turns off GPU when not in use.
- # Experimental and only works on modern Nvidia GPUs (Turing or newer).
- powerManagement.finegrained = false;
-
- # Use the NVidia open source kernel module (not to be confused with the
- # independent third-party "nouveau" open source driver).
- # Support is limited to the Turing and later architectures. Full list of
- # supported GPUs is at:
- # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
- # Only available from driver 515.43.04+
- # Currently alpha-quality/buggy, so false is currently the recommended setting.
- open = false;
-
- # Enable the Nvidia settings menu,
- # accessible via `nvidia-settings`.
- nvidiaSettings = true;
-
- # Optionally, you may need to select the appropriate driver version for your specific GPU.
- package = config.boot.kernelPackages.nvidiaPackages.production;
-
- prime = {
- offload = {
- enable = true;
- enableOffloadCmd = true;
- };
-
- sync.enable = false;
-
- intelBusId = "PCI:0:2:0";
- nvidiaBusId = "PCI:1:0:0";
- };
- };
-}