Skip to content

Commit 10f779c

Browse files
committed
fixup! home.server: enable hm gc when host is server
1 parent 7eec2fe commit 10f779c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

home/base/server.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ in
1010

1111
###### interface
1212

13-
options = {
14-
15-
};
13+
options = { };
1614

1715

1816
###### implementation
1917

20-
config = mkIf nixosConfig.custom.base.server.enable {
18+
config = mkIf (nixosConfig != null && nixosConfig.custom.base.server.enable) {
2119

2220
# needed because of https://github.com/NixOS/nix/issues/8508
2321
nix.gc = mkIf (config.home.username != "root") {

0 commit comments

Comments
 (0)