debugging

This commit is contained in:
2026-03-03 01:15:52 +01:00
parent 0634385f81
commit cafb583c61
9 changed files with 67 additions and 5 deletions

14
modules/base/base.nix Normal file
View File

@@ -0,0 +1,14 @@
{ inputs, ... }: {
flake.nixosModules.base = {
imports = with inputs.self.nixosModules; [
boot
firmware
locale
networking
security
shellapps
version
zsh
];
};
}

View File

@@ -0,0 +1,6 @@
{ ... }: {
flake.nixosModules.firmware = {
services.fwupd.enable = true;
hardware.enableAllFirmware = true;
};
}

View File

@@ -0,0 +1,19 @@
{ ... }: {
flake.nixosModules.locale = {
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "de_DE.UTF-8";
console.keyMap = "de";
services.xserver.xkb.layout = "de";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
};
}

View File

@@ -0,0 +1,5 @@
{ ... }: {
flake.nixosModules.security = {
security.rtkit.enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{ ... }: {
flake.nixosModules.version = {
system.stateVersion = "25.11";
};
}

12
modules/base/zsh/zsh.nix Normal file
View File

@@ -0,0 +1,12 @@
{ ... }: {
flake.nixosModules.zsh = {pkgs, ... }:{
programs.zsh.enable = true;
programs.zsh.enableCompletion = true;
programs.zsh.syntaxHighlighting.enable = true;
programs.zsh.autosuggestions.enable = true;
programs.zsh.autosuggestions.async = true;
programs.zsh.ohMyZsh.enable = true;
programs.zsh.ohMyZsh.theme = "agnoster";
users.defaultUserShell = pkgs.zsh;
};
}

View File

@@ -3,10 +3,7 @@
flake.nixosModules.computer-mo = {
imports = with inputs.self.modules.nixos; [
base
gnome
gnome-apps
steam
overclocking
home-manager
];
};
}

View File

@@ -4,6 +4,6 @@
boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
networking.hostName = computer-mo;
networking.hostName = "computer-mo";
};
}

View File

@@ -14,4 +14,8 @@
config.allowUnfree = true;
};
};
flake.nixosModules.nix-settings = {
nix.settings.experimental-features = [ "nix-command" "flakes" ];
};
}