test out sshserve
This commit is contained in:
@@ -5,5 +5,6 @@
|
|||||||
./ld.nix
|
./ld.nix
|
||||||
./settings.nix
|
./settings.nix
|
||||||
./latest.nix
|
./latest.nix
|
||||||
|
./sshServe.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ in
|
|||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = cfg.optimise;
|
optimise.automatic = cfg.optimise;
|
||||||
settings.allowed-users = [ "root" "@wheel" "anon" "minecraftserver" ];
|
settings.allowed-users = [ "root" "@wheel" "anon" "minecraftserver" "nix-ssh" ];
|
||||||
settings.experimental-features = [
|
settings.experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
|
|||||||
25
modules/nix/sshServe.nix
Normal file
25
modules/nix/sshServe.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.custom.nix.sshServe;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.custom.nix.sshServe = {
|
||||||
|
enable = mkEnableOption "Enable serving the nix cache over ssh";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
nix.sshServe = {
|
||||||
|
enable = true;
|
||||||
|
keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFeP6qtVqE/gu72ZUZE8cdRi3INiUW9NqDR7SjXIzTw2"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -75,6 +75,7 @@ in
|
|||||||
ld.enable = true;
|
ld.enable = true;
|
||||||
index.enable = true;
|
index.enable = true;
|
||||||
settings.enable = true;
|
settings.enable = true;
|
||||||
|
#sshServe.enable = true;
|
||||||
};
|
};
|
||||||
misc = {
|
misc = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
|||||||
@@ -167,15 +167,7 @@
|
|||||||
#kdePackages.qtdeclarative
|
#kdePackages.qtdeclarative
|
||||||
#libimobiledevice
|
#libimobiledevice
|
||||||
#ifuse # optional, to mount using 'ifuse'
|
#ifuse # optional, to mount using 'ifuse'
|
||||||
(wl-clicker.overrideAttrs (old: {
|
wl-clicker
|
||||||
# wayland autoclicker
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "phonetic112";
|
|
||||||
repo = "wl-clicker";
|
|
||||||
rev = "f0241c374241d6cf74ba3abffb74a3fdcefa6f88";
|
|
||||||
hash = "sha256-QwFT9e2FuczC+ew/lDrDnYYccrrfVJi3Rlrurhwk8ZU=";
|
|
||||||
};
|
|
||||||
}))
|
|
||||||
];
|
];
|
||||||
documentation.man.generateCaches = true;
|
documentation.man.generateCaches = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user