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

This commit is contained in:
2026-03-18 15:22:01 +00:00
parent f0974768c8
commit e6b67905aa
5 changed files with 105 additions and 103 deletions
+6 -81
View File
@@ -450,82 +450,9 @@ mkShell {
}
#+END_SRC
** =generated/hosts/traveldroid/boot.nix=
This file has most of the settings the control how the computer boots up.
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
{ pkgs, ... } :
{
boot = {
initrd = {
verbose = false; # its a lot of logs. dont need it, unless we do.
kernelModules = [ ]; # no kernel modules on boot
};
extraModulePackages = [ ]; # no extra packages on boot either
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
kernelParams = [ "silent" ]; # quiet those logs
consoleLogLevel = 0; # quiten more logs
plymouth.enable = true; # graphical boot animation instead
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
loader = {
systemd-boot.enable = true; # systemd-boot
systemd-boot.configurationLimit = 10;
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
timeout = 5; # grub timeout to make a selection
};
};
}
#+END_SRC
** =generated/hosts/traveldroid/machine.nix=
This is the top if the machine hierarchy
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/machine.nix :noweb tangle :mkdirp yes :eval never-html
{
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
{
options = {
wm = lib.mkOption {
type = lib.types.str;
default = "hyprland";
description = "Type of window manager to use";
};
};
config = {
# Minimal settings that must be defined here
networking.hostName = "traveldroid";
wm.type = "hyprland";
# User configuration
users.users.${user.username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
];
hashedPassword = user.hashedPassword;
home = user.homeDirectory;
};
# Optional: Enable auto-login for testing
#services.getty.autologinUser = user.username;
};
}
#+END_SRC
** =generated/hosts/traveldroid/dbus.nix=
** =generated/modules/system/dbus.nix=
This sets the dbus implementation
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/dbus.nix :noweb tangle :mkdirp yes :eval never-html
#+BEGIN_SRC nix :tangle generated/modules/system/dbus.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, ... }:
{
services.dbus = lib.mkForce {
@@ -541,11 +468,9 @@ This sets the dbus implementation
}
#+END_SRC
** =generated/hosts/traveldroid/bluetooth.nix=
** =generated/modules/system/bluetooth.nix=
This sets the bluetooth implementation
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/bluetooth.nix :noweb tangle :mkdirp yes :eval never-html
#+BEGIN_SRC nix :tangle generated/modules/system/bluetooth.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, ... }:
{
# Enable Bluetooth hardware and daemon
@@ -576,9 +501,9 @@ This sets the bluetooth implementation
}
#+END_SRC
** =generated/hosts/traveldroid/xdg.nix=
** =generated/modules/system/xdg.nix=
This sets the XDG implementation
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/xdg.nix :noweb tangle :mkdirp yes :eval never-html
#+BEGIN_SRC nix :tangle generated/modules/system/xdg.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, ... }:
{
xdg.portal = {