formatting

This commit is contained in:
Osman Faruk Bayram 2025-10-21 16:21:12 +03:00
parent bc3f697cff
commit 805508b5ff
3 changed files with 67 additions and 54 deletions

View file

@ -5,7 +5,8 @@
...
}:
{
config = (lib.mkIf config.osbmModules.services.vscode-server.enable {
config = (
lib.mkIf config.osbmModules.services.vscode-server.enable {
services.code-server = {
# only true if the machine is not pochita
enable = config.networking.hostName != "pochita";
@ -52,5 +53,6 @@
};
};
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
});
}
);
}

View file

@ -1,5 +1,10 @@
# impermanence
{lib, inputs, config, ...}:
{
lib,
inputs,
config,
...
}:
let
# Filter out 'root' from the users list since it's a special system user
regularUsers = builtins.filter (u: u != "root") config.osbmModules.users;
@ -8,8 +13,14 @@ let
userPersistence = lib.genAttrs regularUsers (username: {
directories = [
"Documents"
{ directory = ".gnupg"; mode = "0700"; }
{ directory = ".ssh"; mode = "0700"; }
{
directory = ".gnupg";
mode = "0700";
}
{
directory = ".ssh";
mode = "0700";
}
".local/share/direnv"
];
# files = [