formatting
This commit is contained in:
parent
bc3f697cff
commit
805508b5ff
3 changed files with 67 additions and 54 deletions
|
|
@ -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 = {
|
services.code-server = {
|
||||||
# only true if the machine is not pochita
|
# only true if the machine is not pochita
|
||||||
enable = config.networking.hostName != "pochita";
|
enable = config.networking.hostName != "pochita";
|
||||||
|
|
@ -52,5 +53,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
|
networking.firewall.allowedTCPPorts = [ config.services.code-server.port ];
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
# impermanence
|
# impermanence
|
||||||
{lib, inputs, config, ...}:
|
{
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
# Filter out 'root' from the users list since it's a special system user
|
# Filter out 'root' from the users list since it's a special system user
|
||||||
regularUsers = builtins.filter (u: u != "root") config.osbmModules.users;
|
regularUsers = builtins.filter (u: u != "root") config.osbmModules.users;
|
||||||
|
|
@ -8,8 +13,14 @@ let
|
||||||
userPersistence = lib.genAttrs regularUsers (username: {
|
userPersistence = lib.genAttrs regularUsers (username: {
|
||||||
directories = [
|
directories = [
|
||||||
"Documents"
|
"Documents"
|
||||||
{ directory = ".gnupg"; mode = "0700"; }
|
{
|
||||||
{ directory = ".ssh"; mode = "0700"; }
|
directory = ".gnupg";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
directory = ".ssh";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
".local/share/direnv"
|
".local/share/direnv"
|
||||||
];
|
];
|
||||||
# files = [
|
# files = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue