refactor: complete rewrite

This commit is contained in:
ooks-io 2024-10-23 23:46:25 +13:00
parent 19a4bbda3c
commit 8e81943cf9
399 changed files with 3396 additions and 8042 deletions

View file

@ -0,0 +1,6 @@
{
imports = [
./userDirs.nix
./home-manager.nix
];
}

View file

@ -0,0 +1,26 @@
{
lib,
config,
osConfig,
...
}: let
inherit (lib) mkDefault;
inherit (osConfig.ooknet.host) admin;
in {
programs.home-manager.enable = true;
systemd.user.startServices = "sd-switch";
home = {
username = admin.name;
homeDirectory = "/home/${config.home.username}";
stateVersion = mkDefault "22.05";
sessionPath = ["${config.home.homeDirectory}/.local/bin"];
};
# to save space
manual = {
html.enable = false;
json.enable = false;
manpages.enable = false;
};
}

View file

@ -0,0 +1,24 @@
{config, ...}: {
xdg = {
enable = true;
configHome = "${config.home.homeDirectory}/.config";
cacheHome = "${config.home.homeDirectory}/.cache";
dataHome = "${config.home.homeDirectory}/.local/share";
stateHome = "${config.home.homeDirectory}/.local/state";
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/Desktop";
documents = "${config.home.homeDirectory}/Documents";
music = "${config.home.homeDirectory}/Media/Music";
videos = "${config.home.homeDirectory}/Media/Videos";
pictures = "${config.home.homeDirectory}/Media/Pictures";
extraConfig = {
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
XDG_CODE_DIR = "${config.home.homeDirectory}/Code";
XDG_RECORDINGS_DIR = "${config.xdg.userDirs.videos}/Recordings";
};
};
};
}