aboutsummaryrefslogtreecommitdiff
path: root/options.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-09-27 22:07:56 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-09-27 22:08:31 -0700
commite037e164c5c45ff33525d0c8575e8d9e0315ac7b (patch)
treed350808fdb003a196b5c31b6bd2ad5c77345e0aa /options.nix
parent4072628986ccb63a8107e58a6aa35dc6056ded4b (diff)
move nix modules
Diffstat (limited to 'options.nix')
-rw-r--r--options.nix33
1 files changed, 0 insertions, 33 deletions
diff --git a/options.nix b/options.nix
deleted file mode 100644
index faaf2c8..0000000
--- a/options.nix
+++ /dev/null
@@ -1,33 +0,0 @@
-{config, lib, ...}: let
- magician = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII42yGEm1u3FxKdgox6Kkp9IBgBERVKrcIjQkrVbEO3m alex@kassouni.net";
- hierophant = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJqok+IgFuByRuoKM8HbiM919QmAVFvB2rI7ewgGsCiJ kassouni@hierophant";
-in {
- options.my = {
- adminKeys = lib.mkOption {
- type = with lib.types; listOf singleLineStr;
- description = ''
- Keys granted an interactive shell in the wheel group, i.e. root by way
- of sudo. Only add a key you would trust with the whole machine.
- '';
- };
-
- gitKeys = lib.mkOption {
- type = with lib.types; listOf singleLineStr;
- description = ''
- Keys granted git-shell access to the repositories under /srv/git.
- No interactive shell and no sudo, so this is the list to grow when
- someone needs to push.
- '';
- };
- };
-
- config.my = {
- adminKeys = [
- hierophant
- magician
- ];
-
- # Admins push too; collaborator keys belong here and nowhere else.
- gitKeys = config.my.adminKeys;
- };
-}