mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Move root's home directory to /root.
* gnu/system.scm (operating-system-derivation): Change root's 'home-directory' to "/root". * gnu/system/vm.scm (operating-system-default-contents): Add /root.
This commit is contained in:
parent
7a03af707c
commit
ea0e9ce2e6
2 changed files with 2 additions and 1 deletions
|
@ -317,7 +317,7 @@ (define (operating-system-derivation os)
|
||||||
(password "")
|
(password "")
|
||||||
(uid 0) (gid 0)
|
(uid 0) (gid 0)
|
||||||
(comment "System administrator")
|
(comment "System administrator")
|
||||||
(home-directory "/"))
|
(home-directory "/root"))
|
||||||
(append (operating-system-users os)
|
(append (operating-system-users os)
|
||||||
(append-map service-user-accounts
|
(append-map service-user-accounts
|
||||||
services))))
|
services))))
|
||||||
|
|
|
@ -485,6 +485,7 @@ (define (user-directories user)
|
||||||
(directory "/tmp")
|
(directory "/tmp")
|
||||||
(directory "/var/nix/profiles/per-user/root" 0 0)
|
(directory "/var/nix/profiles/per-user/root" 0 0)
|
||||||
|
|
||||||
|
(directory "/root" 0 0) ; an exception
|
||||||
,@(append-map user-directories
|
,@(append-map user-directories
|
||||||
(operating-system-users os))))))
|
(operating-system-users os))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue