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,
lib,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(builtins.toString ./. + "/${hostName}.nix")
];
config = {
networking.hostName = hostName;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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