temporary fix for recursion, remove duplicate hostname in main config

This commit is contained in:
Vinzenz Schroeter 2023-09-09 19:22:11 +02:00
parent d2f8f28143
commit 00c2c2afef
9 changed files with 37 additions and 58 deletions

View file

@ -1,13 +1,16 @@
{ hostName: {
modulesPath, modulesPath,
lib, lib,
... ...
}: { }: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
(builtins.toString ./. + "/${hostName}.nix")
]; ];
config = { config = {
networking.hostName = hostName;
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;

View file

@ -1,12 +1,4 @@
{ {...}: {
lib,
config,
...
}: {
imports = [
./common.nix
];
config = { config = {
boot = { boot = {
initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"]; initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
@ -33,6 +25,6 @@
{device = "/dev/disk/by-uuid/f5932f70-60e4-4abe-b23d-2cab3c095c7d";} {device = "/dev/disk/by-uuid/f5932f70-60e4-4abe-b23d-2cab3c095c7d";}
]; ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = true;
}; };
} }

View file

@ -1,12 +1,4 @@
{ {...}: {
lib,
config,
...
}: {
imports = [
./common.nix
];
config = { config = {
boot = { boot = {
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"]; # "usb_storage" initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"]; # "usb_storage"
@ -57,5 +49,5 @@
swapDevices = []; swapDevices = [];
}; };
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = true;
} }

View file

@ -1,11 +1,8 @@
{ {
config, config,
pkgs, pkgs,
modulesPath,
lib,
... ...
}: }: let
with lib; let
cfg = config.my; cfg = config.my;
in { in {
imports = [ imports = [

View file

@ -6,18 +6,18 @@
}: let }: let
cfg = config.my.gnome; cfg = config.my.gnome;
applyGnomeUserSettings = { #applyGnomeUserSettings = {
home.packages = with pkgs; [ # home.packages = with pkgs; [
gnome.gpaste # gnome.gpaste
amberol # amberol
]; # ];
dconf.settings = { # dconf.settings = {
"org/gnome/desktop/peripherals/keyboard" = { # "org/gnome/desktop/peripherals/keyboard" = {
numlock-state = true; # numlock-state = true;
}; # };
}; # };
}; #};
in { in {
options.my.gnome = { options.my.gnome = {
enable = lib.mkEnableOption "gnome desktop"; enable = lib.mkEnableOption "gnome desktop";
@ -56,8 +56,8 @@ in {
]; ];
home-manager.users = { home-manager.users = {
vinzenz = lib.mkIf config.my.home.vinzenz.enable applyGnomeUserSettings; # vinzenz = lib.mkIf config.my.home.vinzenz.enable applyGnomeUserSettings;
ronja = lib.mkIf config.my.home.ronja.enable applyGnomeUserSettings; # ronja = lib.mkIf config.my.home.ronja.enable applyGnomeUserSettings;
}; };
}; };
} }

View file

@ -6,17 +6,17 @@
}: let }: let
cfg = config.my.kde; cfg = config.my.kde;
applyKdeUserSettings = { # applyKdeUserSettings = {
#home = { # #home = {
# packages = with pkgs; [ # # packages = with pkgs; [
# ]; # # ];
#}; # #};
services.kdeconnect = { # services.kdeconnect = {
enable = true; # enable = true;
indicator = true; # indicator = true;
}; # };
}; # };
in { in {
options.my.kde = { options.my.kde = {
enable = lib.mkEnableOption "KDE desktop"; enable = lib.mkEnableOption "KDE desktop";
@ -55,8 +55,8 @@ in {
}; };
home-manager.users = { home-manager.users = {
vinzenz = lib.mkIf config.my.home.vinzenz.enable applyKdeUserSettings; #vinzenz = lib.mkIf config.my.home.vinzenz.enable applyKdeUserSettings;
ronja = lib.mkIf config.my.home.ronja.enable applyKdeUserSettings; #ronja = lib.mkIf config.my.home.ronja.enable applyKdeUserSettings;
}; };
}; };
} }

View file

@ -3,8 +3,7 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: let
with lib; let
cfg = config.my.home; cfg = config.my.home;
in { in {
imports = [ imports = [

View file

@ -6,12 +6,10 @@
}: { }: {
imports = [ imports = [
./modules ./modules
./hardware/vinzenz-lpt.nix (import ./hardware "vinzenz-lpt")
]; ];
config = { config = {
networking.hostName = "vinzenz-lpt";
my.gnome.enable = true; my.gnome.enable = true;
my.home.vinzenz.enable = true; my.home.vinzenz.enable = true;

View file

@ -6,12 +6,10 @@
}: { }: {
imports = [ imports = [
./modules ./modules
./hardware/vinzenz-pc3.nix (import ./hardware "vinzenz-pc3")
]; ];
config = { config = {
networking.hostName = "vinzenz-pc3";
my.kde.enable = true; my.kde.enable = true;
my.home = { my.home = {
vinzenz.enable = true; vinzenz.enable = true;