This commit is contained in:
2026-01-18 17:42:21 +03:00
parent f5b71cad27
commit 185cf18c0a
3 changed files with 74 additions and 5 deletions
+21 -2
View File
@@ -20,15 +20,34 @@ let
enableNixpkgsReleaseCheck = false;
};
};
mkRootModule = username: {
home = {
username = username;
stateVersion = lib.mkDefault "25.05";
homeDirectory = if username == "root" then lib.mkDefault "/${username}" else lib.mkDefault "/home/${username}";
enableNixpkgsReleaseCheck = false;
};
};
mkOthersModule = username: {
imports = [
(./. + "/others/${xlib.device.type}.nix")
];
home = {
username = username;
stateVersion = lib.mkDefault "25.05";
homeDirectory = if username == "root" then lib.mkDefault "/${username}" else lib.mkDefault "/home/${username}";
enableNixpkgsReleaseCheck = false;
};
};
in
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
root = mkHomeModule "root";
root = mkRootModule "root";
"${xlib.device.username}" = mkHomeModule xlib.device.username;
# "${xlib.users.new}" = mkHomeModule xlib.users.new;
"snity" = mkOthersModule "snity";
};
sharedModules = [
inputs.plasma-manager.homeModules.plasma-manager
+50
View File
@@ -0,0 +1,50 @@
{
config,
lib,
pkgs,
xlib,
...
}:
let
symlinksPaths = {
"${xlib.dirs.lamet-drive}/Games/PrismLauncher - Snity" = ".local/share/PrismLauncher";
};
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
name = targetPath;
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
}) symlinksPaths;
in
{
imports = [
../minimal.nix
../modules/packages.nix
../modules/plasma-manager.nix
];
xdg = {
enable = true;
autostart.enable = true;
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.xdg.dataHome}/desktop";
documents = null;
download = "${config.home.homeDirectory}/Downloads";
music = "${config.home.homeDirectory}/Music";
pictures = "${config.home.homeDirectory}/Pictures";
publicShare = "${config.home.homeDirectory}/Misc/Public";
templates = null;
videos = "${config.home.homeDirectory}/Pictures/Videos";
};
};
home = {
file = mkLinks;
pointerCursor = {
enable = true;
x11.enable = true;
gtk.enable = true;
size = 24;
name = "Qogir";
package = pkgs.qogir-icon-theme;
};
};
}
+3 -3
View File
@@ -6,9 +6,9 @@
...
}:
{
# imports = [
# ./others
# ];
imports = [
./others
];
xlib.device.username = "oqyude";