diff --git a/hosts/dingbox/configuration.nix b/hosts/dingbox/configuration.nix deleted file mode 100644 index 22ea6e0..0000000 --- a/hosts/dingbox/configuration.nix +++ /dev/null @@ -1,47 +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 -# and in the NixOS manual (accessible by running ‘nixos-help’). -{ - config, - pkgs, - ... -}: { - imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ../common - ../common/graphical - - (import ../../modules).dingbox - ]; - - services.xserver = { - dpi = 144; - videoDrivers = ["nvidia"]; - screenSection = '' - Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}" - Option "AllowIndirectGLXProtocol" "off" - Option "TripleBuffer" "on" - ''; - }; - - environment.sessionVariables.NIXOS_OZONE_WL = "1"; - - security.pam.u2f = { - enable = true; - }; - - hardware.nvidia.modesetting.enable = true; - - networking.hostName = "dingbox"; # Define your hostname. - networking.interfaces.enp5s0.useDHCP = true; - networking.interfaces.wlp6s0.useDHCP = true; - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "21.05"; # Did you read the comment? -} diff --git a/hosts/dingbox/hardware-configuration.nix b/hosts/dingbox/hardware-configuration.nix deleted file mode 100644 index fa6f9ee..0000000 --- a/hosts/dingbox/hardware-configuration.nix +++ /dev/null @@ -1,31 +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" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-intel"]; - boot.extraModulePackages = []; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/1c0e1988-4420-4485-bf16-ffb8ec854c69"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/F5EA-A9CB"; - fsType = "vfat"; - }; - - swapDevices = []; -} diff --git a/hosts/dingserver/configuration.nix b/hosts/dingserver/configuration.nix deleted file mode 100644 index 5306083..0000000 --- a/hosts/dingserver/configuration.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: { - imports = [ - # Include the results of the hardware scan. - ../common - ./hardware-configuration.nix - ./tmux.nix - ]; - - # Force disable the common boot loader - boot.loader.systemd-boot.enable = lib.mkForce false; - boot.loader.efi.canTouchEfiVariables = lib.mkForce false; - - # Use the GRUB 2 boot loader. - boot.loader.grub.enable = true; - boot.loader.grub.version = 2; - boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only - - networking = { - hostName = "dingserver"; - interfaces.ens3.useDHCP = true; - - firewall.interfaces = { - "tailscale0" = { - allowedUDPPorts = [41641]; - }; - }; - }; - - environment.systemPackages = with pkgs; [ - helix - kitty # For terminfo - lazygit - ]; - - system.stateVersion = "21.11"; # Did you read the comment? -} diff --git a/hosts/dingserver/hardware-configuration.nix b/hosts/dingserver/hardware-configuration.nix deleted file mode 100644 index 5ccd401..0000000 --- a/hosts/dingserver/hardware-configuration.nix +++ /dev/null @@ -1,28 +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 = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"]; - boot.initrd.kernelModules = []; - boot.kernelModules = []; - boot.extraModulePackages = []; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/f91229ad-de6b-49ad-8858-e49fea85e8a1"; - fsType = "ext4"; - }; - - swapDevices = []; - - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/dingserver/tmux.nix b/hosts/dingserver/tmux.nix deleted file mode 100644 index 9ac98c4..0000000 --- a/hosts/dingserver/tmux.nix +++ /dev/null @@ -1,42 +0,0 @@ -{...}: { - programs.tmux = { - enable = true; - keyMode = "vi"; - terminal = "tmux-256color"; - escapeTime = 0; - baseIndex = 1; - historyLimit = 10000; - clock24 = true; - extraConfig = '' - unbind-key -a -T prefix - unbind-key -a -T root - unbind-key -a -T copy-mode - unbind-key -a -T copy-mode-vi - - set -g prefix M-w - - bind q detach - bind : command-prompt - bind c new-window - bind -T root MouseDown1Status select-window -t = - - bind space copy-mode - bind -T copy-mode-vi Escape send-keys -X cancel - - bind -T copy-mode-vi Escape send -X cancel - bind -T copy-mode-vi k send -X cursor-up - bind -T copy-mode-vi j send -X cursor-down - bind -T copy-mode-vi h send -X cursor-left - bind -T copy-mode-vi l send -X cursor-right - - bind -T copy-mode-vi Space send -X begin-selection - bind -T copy-mode-vi y send -X copy-selection-no-clear - bind -T copy-mode-vi Enter send -X copy-selection-and-cancel - - set -g mouse on - bind -n WheelUpPane copy-mode -e - bind -T copy-mode-vi WheelUpPane send -X -N 5 scroll-up - bind -T copy-mode-vi WheelDownPane send -X -N 5 scroll-down - ''; - }; -} diff --git a/hosts/miniding/configuration.nix b/hosts/miniding/configuration.nix deleted file mode 100644 index 6f3e205..0000000 --- a/hosts/miniding/configuration.nix +++ /dev/null @@ -1,33 +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 -# and in the NixOS manual (accessible by running ‘nixos-help’). -{ - config, - pkgs, - ... -}: { - imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ../common - ../common/graphical - ]; - - networking = { - hostName = "miniding"; - interfaces.wlp2s0.useDHCP = true; - }; - - # Enable the X11 windowing system. - services.xserver = { - dpi = 144; - }; - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "21.05"; # Did you read the comment? -} diff --git a/hosts/miniding/hardware-configuration.nix b/hosts/miniding/hardware-configuration.nix deleted file mode 100644 index 05164d7..0000000 --- a/hosts/miniding/hardware-configuration.nix +++ /dev/null @@ -1,31 +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"]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-intel"]; - boot.extraModulePackages = []; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/6a362ee7-854b-4a5b-8989-e65af01b9b99"; - fsType = "ext4"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/C103-FFC1"; - fsType = "vfat"; - }; - - swapDevices = []; -}