feat+chore: openssh, cleaning comments
This commit is contained in:
1 parent
44adebce59
commit
8f6e02f096
5 files changed
+1
-50
No files matched your search
@@ -94,7 +94,7 @@ in
|
|||||||
# Feel free to remove if you don't need it.
|
# Feel free to remove if you don't need it.
|
||||||
#Unused, keeping for later reference
|
#Unused, keeping for later reference
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = false;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
|||||||
@@ -16,20 +16,8 @@ in {
|
|||||||
"video"
|
"video"
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: use as needed
|
|
||||||
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
|
||||||
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# unused for now, may add sops later on
|
|
||||||
#sops.secrets = {
|
|
||||||
# gabriel-password = {
|
|
||||||
# sopsFile = ../../secrets.yaml;
|
|
||||||
# neededForUsers = true;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
|
|||||||
@@ -12,20 +12,8 @@ in {
|
|||||||
extraGroups = ifTheyExist [
|
extraGroups = ifTheyExist [
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: use as needed
|
|
||||||
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
|
||||||
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# unused for now, may add sops later on
|
|
||||||
#sops.secrets = {
|
|
||||||
# gabriel-password = {
|
|
||||||
# sopsFile = ../../secrets.yaml;
|
|
||||||
# neededForUsers = true;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
# TODO: ensure correct paths
|
# TODO: ensure correct paths
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
|
|||||||
@@ -26,21 +26,8 @@ in {
|
|||||||
"wheel"
|
"wheel"
|
||||||
"wireshark"
|
"wireshark"
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: use as needed
|
|
||||||
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
|
||||||
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# unused for now, may add sops later on
|
|
||||||
#sops.secrets = {
|
|
||||||
# gabriel-password = {
|
|
||||||
# sopsFile = ../../secrets.yaml;
|
|
||||||
# neededForUsers = true;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
|
|||||||
@@ -27,20 +27,8 @@ in {
|
|||||||
"wireshark"
|
"wireshark"
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: use as needed
|
|
||||||
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
|
||||||
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
|
||||||
#packages = [pkgs.home-manager];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# unused for now, may add sops later on
|
|
||||||
#sops.secrets = {
|
|
||||||
# gabriel-password = {
|
|
||||||
# sopsFile = ../../secrets.yaml;
|
|
||||||
# neededForUsers = true;
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
# TODO: ensure correct paths
|
# TODO: ensure correct paths
|
||||||
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user