aboutsummaryrefslogtreecommitdiff
path: root/hosts/desktop
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-08-17 00:03:59 +0200
committerschererleander <leander@schererleander.de>2025-08-17 00:07:48 +0200
commit24c99cf22e012e07509505b4efdc528589008dd4 (patch)
tree7a1eaa310fe747fe910286eac3c047f936a4a129 /hosts/desktop
parent3bb78df81f840bc542140129c488050628b40881 (diff)
feat: rename hosts
Diffstat (limited to 'hosts/desktop')
-rw-r--r--hosts/desktop/audio.nix11
-rw-r--r--hosts/desktop/configuration.nix79
-rw-r--r--hosts/desktop/hardware-configuration.nix41
-rw-r--r--hosts/desktop/home.nix67
-rw-r--r--hosts/desktop/wooting.nix27
5 files changed, 0 insertions, 225 deletions
diff --git a/hosts/desktop/audio.nix b/hosts/desktop/audio.nix
deleted file mode 100644
index e34b073..0000000
--- a/hosts/desktop/audio.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-{ ... }:
-
-{
- security.rtkit.enable = true;
- services.pipewire = {
- enable = true;
- alsa.enable = true;
- alsa.support32Bit = true;
- pulse.enable = true;
- };
-}
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix
deleted file mode 100644
index 5d5cb37..0000000
--- a/hosts/desktop/configuration.nix
+++ /dev/null
@@ -1,79 +0,0 @@
-{ pkgs, username, ... }:
-
-{
-
- imports = [
- ./hardware-configuration.nix
- ./audio.nix
- ./wooting.nix
- ];
-
- # Bootloader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- boot.loader.systemd-boot.consoleMode = "max";
-
- # Use latest kernel
- boot.kernelPackages = pkgs.linuxPackages_latest;
-
- # Graphics
- hardware.graphics = {
- enable = true;
- enable32Bit = true;
- extraPackages = with pkgs; [
- amdvlk
- ];
- };
-
- environment.variables.AMD_VULKAN_ICD = "RADV";
-
- # Network
- networking = {
- hostName = "nixos";
- networkmanager.enable = true;
- };
-
- # Improve startup time
- systemd.services.NetworkManager-wait-online.enable = false;
-
- # Time
- time.timeZone = "Europe/Berlin";
-
- # Keymap
- console.keyMap = "de";
-
- # User
- users.users.${username} = {
- isNormalUser = true;
- extraGroups = [
- "networkmanager"
- "wheel"
- "video"
- "input"
- ];
- shell = pkgs.zsh;
- ignoreShellProgramCheck = true;
- };
-
- services = {
- openssh.enable = true;
- gnome.gnome-keyring.enable = true;
- };
-
- xdg.portal = {
- enable = true;
- wlr.enable = true;
- };
-
- security.polkit.enable = true;
-
- programs.dconf.enable = true;
-
- nix.settings.experimental-features = [
- "nix-command"
- "flakes"
- ];
- nixpkgs.config.allowUnfree = true;
-
- system.stateVersion = "25.05";
-}
diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix
deleted file mode 100644
index 9338f30..0000000
--- a/hosts/desktop/hardware-configuration.nix
+++ /dev/null
@@ -1,41 +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" ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.extraModulePackages = [ ];
-
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/9723eaab-4969-45e2-8364-b20aa6f4e120";
- fsType = "ext4";
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/29E6-B167";
- fsType = "vfat";
- options = [ "fmask=0077" "dmask=0077" ];
- };
-
- swapDevices =
- [ { device = "/dev/disk/by-uuid/fb68b9c4-9305-4cf5-8279-3cae83524983"; }
- ];
-
- # 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.eno1.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp11s0.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix
deleted file mode 100644
index 3e831d8..0000000
--- a/hosts/desktop/home.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-{ pkgs, ... }:
-
-{
- imports = [
- ../../modules/home-manager
- ];
-
- home.username = "leander";
- home.homeDirectory = "/home/leander";
-
- programs.home-manager.enable = true;
-
- home.packages = with pkgs; [
- obsidian
- firefox
- imv
- mpv
-
- xdg-utils
- pulsemixer
-
- # fonts
- noto-fonts
- noto-fonts-cjk-sans
- noto-fonts-emoji
- ];
-
- gtk = {
- enable = true;
- theme = {
- name = "Adwaita-dark";
- package = pkgs.gnome-themes-extra;
- };
- gtk3.extraConfig = {
- Settings = ''
- gtk-application-prefer-dark-theme=1
- '';
- };
- gtk4.extraConfig = {
- Settings = ''
- gtk-application-prefer-dark-theme=1
- '';
- };
- };
-
- home.pointerCursor = {
- gtk.enable = true;
- name = "Adwaita";
- package = pkgs.adwaita-icon-theme;
- size = 24;
- };
-
- programs.zsh.shellAliases = {
- open = "xdg-open";
- };
-
- dev.enable = true;
-
- sway.enable = true;
- waybar.enable = true;
- foot.enable = true;
- spicetify.enable = true;
- zathura.enable = true;
- nixcord.enable = true;
-
- home.stateVersion = "25.05";
-}
diff --git a/hosts/desktop/wooting.nix b/hosts/desktop/wooting.nix
deleted file mode 100644
index 742ef29..0000000
--- a/hosts/desktop/wooting.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ pkgs, ... }:
-
-{
- services.udev.extraRules = ''
- # Wooting One Legacy
- SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess"
- SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess"
-
- # Wooting One update mode
- SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", TAG+="uaccess"
-
- # Wooting Two Legacy
- SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess"
- SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", TAG+="uaccess"
-
- # Wooting Two update mode
- SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2403", TAG+="uaccess"
-
- # Generic Wootings
- SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", TAG+="uaccess"
- SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", TAG+="uaccess"
- '';
-
- environment.systemPackages = with pkgs; [
- wootility
- ];
-}