From e8c5e14dc3ebda0822780157bb4c1b8492d430ef Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Sat, 5 Apr 2025 15:13:04 +0200 Subject: [PATCH] Added: Qemu Host --- hosts/qemu/default.nix | 1 + hosts/qemu/hardware-configuration.nix | 12 ++++++++---- modules/regreet/regreet.nix | 12 ++++++------ 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/hosts/qemu/default.nix b/hosts/qemu/default.nix index f992483..f3985c4 100644 --- a/hosts/qemu/default.nix +++ b/hosts/qemu/default.nix @@ -72,3 +72,4 @@ system.stateVersion = "24.11"; # Did you read the comment? } + diff --git a/hosts/qemu/hardware-configuration.nix b/hosts/qemu/hardware-configuration.nix index acd9748..2222882 100644 --- a/hosts/qemu/hardware-configuration.nix +++ b/hosts/qemu/hardware-configuration.nix @@ -14,13 +14,17 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/8ace4659-e212-489e-8577-c71eb54ebf57"; + { device = "/dev/disk/by-label/NIXROOT"; fsType = "ext4"; }; - swapDevices = - [ { device = "/dev/disk/by-uuid/7bd0e706-f339-485b-95b8-a1bfbfb6a756"; } - ]; + fileSystems."/boot" = + { device = "/dev/disk/by-label/NIXBOOT"; + 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 diff --git a/modules/regreet/regreet.nix b/modules/regreet/regreet.nix index 4be6229..1954e11 100644 --- a/modules/regreet/regreet.nix +++ b/modules/regreet/regreet.nix @@ -1,4 +1,4 @@ -{ pkgs, username, ... }: { +{ pkgs, username, lib, ... }: { /*services.greetd = { enable = true; settings = { @@ -36,15 +36,15 @@ GTK = { application_prefer_dark_theme = true; cursor_theme_name = "Adwaita"; - font_name = "FiraCodeNerdFontPropo 12"; - icon_theme_name = "materialdesignicons"; + font_name = lib.mkForce "FiraCodeNerdFontPropo 12"; + icon_theme_name = lib.mkForce "materialdesignicons"; theme_name = "Adwaita"; }; commands = { - reboot = ["systemctl", "reboot"]; - poweroff = ["systemctl", "poweroff"]; - x11_prefix = [ "startx", "/usr/bin/env" ]; + reboot = ["systemctl" "reboot"]; + poweroff = ["systemctl" "poweroff"]; + x11_prefix = [ "startx" "/usr/bin/env" ]; }; appearance = {