Enable basic home config for root user
Emacs: always create new workspace when switching to project
This commit is contained in:
parent
6423dd73d8
commit
30e145ada1
38
flake.nix
38
flake.nix
|
@ -143,19 +143,31 @@
|
||||||
inherit extraSpecialArgs;
|
inherit extraSpecialArgs;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = let
|
users = {
|
||||||
username = user;
|
root = {
|
||||||
homeDirectory = "/home/${user}";
|
imports = [ ./home/default.nix ];
|
||||||
in {
|
home = {
|
||||||
imports = [ ./hosts/${hostName}/home.nix ./home/default.nix ]
|
inherit stateVersion;
|
||||||
++ homeModules;
|
username = "root";
|
||||||
home = { inherit username homeDirectory stateVersion; };
|
homeDirectory = "/root";
|
||||||
programs.home-manager.enable = true;
|
};
|
||||||
xdg.userDirs = {
|
programs.home-manager.enable = true;
|
||||||
enable = true;
|
};
|
||||||
createDirectories = true;
|
${user} = let
|
||||||
extraConfig = {
|
username = user;
|
||||||
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
homeDirectory = "/home/${user}";
|
||||||
|
in {
|
||||||
|
imports =
|
||||||
|
[ ./hosts/${hostName}/home.nix ./home/default.nix ]
|
||||||
|
++ homeModules;
|
||||||
|
home = { inherit username homeDirectory stateVersion; };
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
xdg.userDirs = {
|
||||||
|
enable = true;
|
||||||
|
createDirectories = true;
|
||||||
|
extraConfig = {
|
||||||
|
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,10 +30,6 @@
|
||||||
(set-frame-parameter nil 'alpha-background 80)
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
|
|
||||||
(after! projectile
|
|
||||||
(setq +workspaces-switch-project-function 'doom-project-browse
|
|
||||||
doom-projectile-cache-purge-non-projects t))
|
|
||||||
|
|
||||||
;; DOOM Dashboard customisation
|
;; DOOM Dashboard customisation
|
||||||
(setq +doom-dashboard-menu-sections
|
(setq +doom-dashboard-menu-sections
|
||||||
'(("Recently opened files"
|
'(("Recently opened files"
|
||||||
|
@ -76,8 +72,11 @@
|
||||||
|
|
||||||
;; projectile auto-discover projects
|
;; projectile auto-discover projects
|
||||||
(after! projectile
|
(after! projectile
|
||||||
(setq projectile-auto-discover t)
|
(setq projectile-auto-discover t
|
||||||
(setq projectile-project-search-path '("~/Projects/")))
|
projectile-project-search-path '("~/Projects/")
|
||||||
|
doom-projectile-cache-purge-non-projects t
|
||||||
|
+workspaces-switch-project-function 'doom-project-browse
|
||||||
|
+workspaces-on-switch-project-behavior t))
|
||||||
|
|
||||||
(after! (magit magit-delta)
|
(after! (magit magit-delta)
|
||||||
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1))))
|
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1))))
|
||||||
|
|
Loading…
Reference in a new issue