New structure since I kept struggling with the home-manager implemnentation

This commit is contained in:
2026-03-18 15:24:20 +00:00
parent e6b67905aa
commit 580f06c420
2 changed files with 44 additions and 49 deletions
+22 -27
View File
@@ -347,43 +347,38 @@ let
coreEnabled = config.mySystem.system.core.enable or false; coreEnabled = config.mySystem.system.core.enable or false;
in in
{ {
options.mySystem.system.locale.enable = options.mySystem.system.locale.enable = lib.mkEnableOption "Boot settings";
lib.mkEnableOption "Boot settings";
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) { config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
boot = { boot = {
initrd = { initrd = {
verbose = false; # its a lot of logs. dont need it, unless we do. verbose = false; # its a lot of logs. dont need it, unless we do.
kernelModules = [ ]; # no kernel modules on boot kernelModules = [ ]; # no kernel modules on boot
}; };
extraModulePackages = [ ]; # no extra packages on boot either extraModulePackages = [ ]; # no extra packages on boot either
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
kernelParams = [ "silent" ]; # quiet those logs kernelParams = [ "silent" ]; # quiet those logs
consoleLogLevel = 0; # quiten more logs consoleLogLevel = 0; # quiten more logs
plymouth.enable = true; # graphical boot animation instead plymouth.enable = true; # graphical boot animation instead
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows) supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
loader = { loader = {
systemd-boot.enable = true; # systemd-boot systemd-boot.enable = true; # systemd-boot
systemd-boot.configurationLimit = 10; systemd-boot.configurationLimit = 10;
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
timeout = 5; # grub timeout to make a selection timeout = 5; # grub timeout to make a selection
}; };
}; };
};
} }
#+END_SRC #+END_SRC
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure * First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
** =generated/modules/system/devshell.nix= ** =generated/modules/system/devshell.nix=
This code defines a Nix shell environment (also called a "devShell") that you can enter using the nix develop command. When you enter this shell, Nix will provide the tools and dependencies listed in buildInputs. This code defines a Nix shell environment (also called a "devShell") that you can enter using the nix develop command. When you enter this shell, Nix will provide the tools and dependencies listed in buildInputs.
#+BEGIN_SRC nix :tangle generated/modules/system/devshell.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/system/devshell.nix :noweb tangle :mkdirp yes :eval never-html
+22 -22
View File
@@ -4,31 +4,31 @@ let
coreEnabled = config.mySystem.system.core.enable or false; coreEnabled = config.mySystem.system.core.enable or false;
in in
{ {
options.mySystem.system.locale.enable = options.mySystem.system.locale.enable = lib.mkEnableOption "Boot settings";
lib.mkEnableOption "Boot settings";
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) { config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
boot = { boot = {
initrd = { initrd = {
verbose = false; # its a lot of logs. dont need it, unless we do. verbose = false; # its a lot of logs. dont need it, unless we do.
kernelModules = [ ]; # no kernel modules on boot kernelModules = [ ]; # no kernel modules on boot
}; };
extraModulePackages = [ ]; # no extra packages on boot either extraModulePackages = [ ]; # no extra packages on boot either
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
kernelParams = [ "silent" ]; # quiet those logs kernelParams = [ "silent" ]; # quiet those logs
consoleLogLevel = 0; # quiten more logs consoleLogLevel = 0; # quiten more logs
plymouth.enable = true; # graphical boot animation instead plymouth.enable = true; # graphical boot animation instead
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows) supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
loader = { loader = {
systemd-boot.enable = true; # systemd-boot systemd-boot.enable = true; # systemd-boot
systemd-boot.configurationLimit = 10; systemd-boot.configurationLimit = 10;
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
timeout = 5; # grub timeout to make a selection timeout = 5; # grub timeout to make a selection
}; };
}; };
};
} }