users upadate
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ self, config, inputs, ... }:
|
||||
{ self, config, secretsDir, ... }:
|
||||
{
|
||||
users.users.files = {
|
||||
isNormalUser = true;
|
||||
@@ -12,7 +12,7 @@
|
||||
hostname = config.networking.hostName;
|
||||
};
|
||||
|
||||
home-manager.users.files = import ../common/home.nix;
|
||||
home-manager.users.files = import ./home.nix;
|
||||
|
||||
users.users.files.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAgNB1nsKZ5KXnmR6KWjQLfwhFKDispw24o8M7g/nbR me@bitwarden"
|
||||
@@ -26,5 +26,4 @@
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPgKLRF9iYRH3Y8hPjLX1ZY6GyavruqcQ0Q0Y8bnmpv9 me@tab"
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
|
||||
25
users/files/home.nix
Normal file
25
users/files/home.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ secretsDir, ... }: {
|
||||
|
||||
imports = [
|
||||
../common/home.nix
|
||||
];
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
identityFile = "/home/files/secrets/files-private";
|
||||
};
|
||||
ouranos = {
|
||||
hostname = "195.201.148.94";
|
||||
user = "root";
|
||||
};
|
||||
fusus = {
|
||||
hostname = "localhost";
|
||||
user = "server";
|
||||
port = 49388;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user