- Remove unused `pkgs` import from hardware and adjust user stateVersion to 25.11 with updated wheel comment. - Split Bash aliases and functions into separate modules and rename `bash.nix` to `bash/default.nix` with imports. - Delete old Bash alias/function files and consolidate them under the new structure. - Simplify `bat.nix` by removing commented style lines. - Increase Cava `frame_rate` from 60 to 144 and clean up legacy color settings. - Refactor Chromium configuration: separate extensions into `extensions.nix` and use a minimal default module. - Replace large Kitty config with minimal enable/module and import `extra-config.nix` and `settings.nix`. - Overhaul Librewolf setup: extract profiles, extensions, search, and settings into dedicated files. - Update home `default.nix` imports to reflect new module paths and remove obsolete references. - Modularize SwayNC by moving settings and style to separate files. - Add explicit Vesktop package definition. - Remove old VSCode module; introduce VSCodium with profile-based extensions, keybindings, and user settings. - Reorganize XDG portal and desktop entries into modular files. - Rebuild Zed configuration: split user settings, language models, languages, LSP, extensions, and extra packages into distinct files.
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
username,
|
|
host,
|
|
profile,
|
|
system,
|
|
...
|
|
}: let
|
|
inherit (import ../../hosts/${host}/variables.nix) gitUsername;
|
|
in {
|
|
imports = [inputs.home-manager.nixosModules.home-manager];
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = false;
|
|
backupFileExtension = "backup-nixos";
|
|
extraSpecialArgs = {
|
|
inherit
|
|
inputs
|
|
username
|
|
host
|
|
profile
|
|
system
|
|
;
|
|
};
|
|
users.${username} = {
|
|
imports = [./../home];
|
|
home = {
|
|
username = "${username}";
|
|
homeDirectory = "/home/${username}";
|
|
stateVersion = "25.11";
|
|
};
|
|
};
|
|
};
|
|
users.mutableUsers = true;
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
description = "${gitUsername}";
|
|
extraGroups = [
|
|
"adbusers"
|
|
"docker" # access to docker as non-root
|
|
"libvirtd" # Virt manager/QEMU access
|
|
"lp"
|
|
"networkmanager"
|
|
"scanner"
|
|
"wheel" # sudo access
|
|
"vboxusers" # Virtual Box
|
|
"gamemode"
|
|
];
|
|
shell = pkgs.bash;
|
|
ignoreShellProgramCheck = true;
|
|
};
|
|
nix.settings.allowed-users = ["${username}"];
|
|
}
|