re-split direcories #1

Merged
vinzenz merged 28 commits from modules into main 2025-09-15 19:44:30 +02:00
9 changed files with 70 additions and 74 deletions
Showing only changes of commit a208ca4df2 - Show all commits

View file

@ -116,6 +116,10 @@
modules = [ modules = [
{ {
networking.hostName = device; networking.hostName = device;
nixpkgs = {
inherit system;
hostPlatform = lib.mkDefault system;
};
system = { system = {
stateVersion = "22.11"; stateVersion = "22.11";
autoUpgrade.flake = "git+https://git.berlin.ccc.de/vinzenz/nixos-configuration.git"; autoUpgrade.flake = "git+https://git.berlin.ccc.de/vinzenz/nixos-configuration.git";
@ -176,6 +180,8 @@
self.nixosModules.gnome self.nixosModules.gnome
self.nixosModules.modern-desktop self.nixosModules.modern-desktop
self.nixosModules.nix-ld self.nixosModules.nix-ld
self.nixosModules.quiet-boot
self.nixosModules.systemd-boot
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
servicepoint-simulator.nixosModules.default servicepoint-simulator.nixosModules.default

View file

@ -1,32 +1,5 @@
{ lib, ... }:
{ {
lib,
pkgs,
...
}:
{
config = {
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelParams = [
"quiet"
"udev.log_level=3"
];
supportedFilesystems = [ "btrfs" ];
initrd.supportedFilesystems = [ "btrfs" ];
consoleLogLevel = 0;
initrd.verbose = false;
plymouth.enable = true;
loader = {
timeout = 3;
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
editor = false; # do not allow changing kernel parameters
consoleMode = "max";
};
};
};
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's
@ -44,5 +17,4 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
services.fwupd.enable = true; services.fwupd.enable = true;
};
} }

View file

@ -3,11 +3,6 @@
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
config = { config = {
nixpkgs = {
hostPlatform = "aarch64-linux";
system = "aarch64-linux";
};
boot = { boot = {
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
kernelParams = [ "console=tty" ]; kernelParams = [ "console=tty" ];

View file

@ -3,11 +3,6 @@
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
config = { config = {
nixpkgs = {
hostPlatform = "aarch64-linux";
system = "aarch64-linux";
};
boot = { boot = {
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
kernelParams = [ "console=tty" ]; kernelParams = [ "console=tty" ];

View file

@ -1,6 +1,7 @@
{ lib, ... }:
{ {
boot = { boot = {
supportedFilesystems = [ "btrfs" ];
initrd.supportedFilesystems = [ "btrfs" ];
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ]; extraModulePackages = [ ];
initrd = { initrd = {
@ -37,6 +38,5 @@
{ device = "/dev/disk/by-uuid/bf9d19fb-499b-4bfb-b67d-131fa5bf8259"; } { device = "/dev/disk/by-uuid/bf9d19fb-499b-4bfb-b67d-131fa5bf8259"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
} }

View file

@ -1,4 +1,9 @@
{ lib, vinzenzNixosModules, ... }: {
lib,
vinzenzNixosModules,
pkgs,
...
}:
{ {
imports = [ vinzenzNixosModules.intel-graphics ]; imports = [ vinzenzNixosModules.intel-graphics ];
config = { config = {
@ -9,11 +14,6 @@
]; ];
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (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 # still possible to use this option, but it's recommended to use it in conjunction
@ -22,9 +22,11 @@
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; boot = {
kernelPackages = pkgs.linuxPackages_zen;
boot.initrd = { supportedFilesystems = [ "btrfs" ];
initrd = {
supportedFilesystems = [ "btrfs" ];
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"
"thunderbolt" "thunderbolt"
@ -36,6 +38,7 @@
}; };
}; };
}; };
};
fileSystems = { fileSystems = {
"/" = { "/" = {

View file

@ -1,4 +1,4 @@
{ vinzenzNixosModules, ... }: { vinzenzNixosModules, pkgs, ... }:
{ {
imports = [ vinzenzNixosModules.amd-graphics ]; imports = [ vinzenzNixosModules.amd-graphics ];
config = { config = {
@ -14,6 +14,9 @@
"usbhid" "usbhid"
"sd_mod" "sd_mod"
]; # "usb_storage" ]; # "usb_storage"
kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = [ "btrfs" ];
initrd.supportedFilesystems = [ "btrfs" ];
loader.efi.efiSysMountPoint = "/boot"; loader.efi.efiSysMountPoint = "/boot";
}; };

View file

@ -0,0 +1,11 @@
{
boot = {
kernelParams = [
"quiet"
"udev.log_level=3"
];
consoleLogLevel = 0;
initrd.verbose = false;
plymouth.enable = true;
};
}

View file

@ -0,0 +1,11 @@
{
boot.loader = {
timeout = 3;
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
editor = false; # do not allow changing kernel parameters
consoleMode = "max";
};
};
}