format code

This commit is contained in:
pazpi 2024-08-27 11:23:24 +02:00
parent fd2b1c42e8
commit 55af1f0e06
5 changed files with 10 additions and 48 deletions

View file

@ -63,43 +63,15 @@ in
services = { services = {
openssh.enable = true; openssh.enable = true;
# tailscale = { };
# enable = false;
# useRoutingFeatures = "both"; tailscale = {
# extraUpFlags = [ "--exit-node=${parameters.tailscaleExitNodeIP}" ]; enable = false;
# authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}''; exitNode = "vps";
# }; # authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}'';
}; };
time.timeZone = timeZone; time.timeZone = timeZone;
users = {
# If set to false, the contents of the user and group files will simply
# be replaced on system activation.
# This also holds for the user passwords.
# All changed passwords will be reset according
# to the `users.users` configuration on activation.
mutableUsers = false;
users.root = {
hashedPassword = "!";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhiGLc/whCY3lCmDiRlYnMJOLiO/gvcRj/sKVEFVAhQ pazpi@deadbeef"
];
};
users.pazpi = {
isNormalUser = true;
hashedPassword = "$y$j9T$oWLCV1hnGPyOGabMfAS3p1$/iwouRZGwQXcv6IHnLuT3I9.pmeXNpcHxq.b8xfitr1";
shell = pkgs.bash;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhiGLc/whCY3lCmDiRlYnMJOLiO/gvcRj/sKVEFVAhQ pazpi@deadbeef"
];
};
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -7,8 +7,5 @@
./systems ./systems
./utils ./utils
./virtualisation ./virtualisation
# Files
./btrfs-autoscrub.nix
]; ];
} }

View file

@ -52,11 +52,7 @@ in
shell = pkgs.zsh; shell = pkgs.zsh;
uid = 1000; uid = 1000;
packages = packages = with pkgs; lib.mkIf cfg.flatpak [ flatpak ];
with pkgs;
lib.mkIf cfg.flatpak [
flatpak
];
}; };
console.keyMap = "it"; console.keyMap = "it";

View file

@ -1,5 +1 @@
{ { imports = [ ./btrfs-autoscrub.nix ]; }
imports = [
./btrfs-autoscrub.nix
]
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./commons.nix ./commons.nix
./server-node-users.nix
]; ];
} }