aboutsummaryrefslogtreecommitdiff
path: root/flakes
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-12-31 00:13:07 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-12-31 11:32:20 +0100
commite8864bbff33f33b1de4929037a81368263c5475b (patch)
treec40133ede864146e0f7c8fb63caf75a528a480a2 /flakes
parentbb9bc238b55d59a62dedb541b1584167a41a2996 (diff)
downloadNix-e8864bbff33f33b1de4929037a81368263c5475b.tar.gz
Nix-e8864bbff33f33b1de4929037a81368263c5475b.tar.zst
Nix-e8864bbff33f33b1de4929037a81368263c5475b.zip
Use flake for openarc
Diffstat (limited to 'flakes')
-rw-r--r--flakes/openarc/flake.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/flakes/openarc/flake.nix b/flakes/openarc/flake.nix
index 6110b2d..bdb0358 100644
--- a/flakes/openarc/flake.nix
+++ b/flakes/openarc/flake.nix
@@ -117,13 +117,15 @@
117 }; 117 };
118 118
119 config = lib.mkIf cfg.enable { 119 config = lib.mkIf cfg.enable {
120 users.users.openarc = lib.optionalAttrs (cfg.user == "openarc") { 120 users.users = lib.optionalAttrs (cfg.user == "openarc") {
121 group = cfg.group; 121 openarc = {
122 uid = myuids.lib.uids.openarc; 122 group = cfg.group;
123 uid = myuids.lib.uids.openarc;
124 };
123 }; 125 };
124 126
125 users.groups.openarc = lib.optionalAttrs (cfg.group == "openarc") { 127 users.groups = lib.optionalAttrs (cfg.group == "openarc") {
126 gid = myuids.lib.gids.openarc; 128 openarc.gid = myuids.lib.gids.openarc;
127 }; 129 };
128 130
129 environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ]; 131 environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ];