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
16
flake.nix
16
flake.nix
|
@ -143,11 +143,22 @@
|
||||||
inherit extraSpecialArgs;
|
inherit extraSpecialArgs;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = let
|
users = {
|
||||||
|
root = {
|
||||||
|
imports = [ ./home/default.nix ];
|
||||||
|
home = {
|
||||||
|
inherit stateVersion;
|
||||||
|
username = "root";
|
||||||
|
homeDirectory = "/root";
|
||||||
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
};
|
||||||
|
${user} = let
|
||||||
username = user;
|
username = user;
|
||||||
homeDirectory = "/home/${user}";
|
homeDirectory = "/home/${user}";
|
||||||
in {
|
in {
|
||||||
imports = [ ./hosts/${hostName}/home.nix ./home/default.nix ]
|
imports =
|
||||||
|
[ ./hosts/${hostName}/home.nix ./home/default.nix ]
|
||||||
++ homeModules;
|
++ homeModules;
|
||||||
home = { inherit username homeDirectory stateVersion; };
|
home = { inherit username homeDirectory stateVersion; };
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
@ -160,6 +171,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
})
|
})
|
||||||
] ++ systemModules ++ serviceModules;
|
] ++ systemModules ++ serviceModules;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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