users upadate

This commit is contained in:
Sebastian Moser
2025-06-19 10:31:13 +02:00
parent bff8a49cc4
commit 0cffb9cb54
7 changed files with 48 additions and 6 deletions

View File

@@ -11,7 +11,6 @@
../../programs/git.nix
../../programs/lf/default.nix
../../programs/bash.nix
../../programs/ssh.nix
../../programs/neovim.nix
];

View File

@@ -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
View 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;
};
};
};
}

View File

@@ -4,6 +4,7 @@
{
imports = [
../common/home.nix
../../programs/ssh.nix
# my gui programs
../../programs/alacritty.nix
@@ -12,8 +13,11 @@
../../programs/rofi/default.nix
../../programs/zathura.nix
../../programs/firefox/default.nix
inputs.lan-mouse.homeManagerModules.default
];
programs.lan-mouse.systemd = true;
gtk.cursorTheme = {
name = "Yaru";
};
@@ -40,6 +44,7 @@
home.sessionVariables = {
inherit system;
VIC_BINARY = "/home/me/work/victorinix/vic";
};
services.dunst.enable = true;
@@ -51,6 +56,7 @@
".local/share/PrismLauncher/".source = config.lib.file.mkOutOfStoreSymlink "${workDir}/app-data/prism-launcher";
".local/share/DaVinciResolve/".source = config.lib.file.mkOutOfStoreSymlink "${workDir}/app-data/DaVinciResolve";
".local/share/JetBrains/IdeaIC2024.3".source = config.lib.file.mkOutOfStoreSymlink "${workDir}/app-data/IdeaIC2024.3";
};

View File

@@ -12,7 +12,7 @@
hostname = config.networking.hostName;
};
home-manager.users.me = import ../common/home.nix;
home-manager.users.me = import ./home.nix;
users.users.me.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAgNB1nsKZ5KXnmR6KWjQLfwhFKDispw24o8M7g/nbR me@bitwarden"

9
users/me/home.nix Normal file
View File

@@ -0,0 +1,9 @@
{ secretsDir, ... }: {
imports = [
../common/home.nix
../../programs/ssh.nix
];
}

View File

@@ -1,4 +1,4 @@
{ self, config, inputs, ... }:
{ self, config, inputs, pkgs, ... }:
{
users.users.server = {
isNormalUser = true;
@@ -19,6 +19,9 @@
"${inputs.vscode-server}/modules/vscode-server/home.nix"
../common/home.nix
];
home.packages = with pkgs; [
socat
];
};
users.users.server.openssh.authorizedKeys.keys = [
@@ -26,6 +29,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII/mCDzCBE2J1jGnEhhtttIRMKkXMi1pKCAEkxu+FAim me@main"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGw5kYmBQl8oolNg2VUlptvvSrFSESfeuWpsXRovny0x me@phone"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIKF/79W6y/g26xGGPHQJwLtrmaDUb24Hd5D+WD59nzE borgs@fusu"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDU8OZxpeEuwVYFQC1ZYOECfU8fVg0BhNIYk5tK6aNeUe4JBJezwBWIQLsxuo1YgUX1CwbP5IAAj0JyoYUzWT5H4Qyev6rj3JWvBl+kVTnJyiipRccasXD/3IuRK2GBpMcK67sUoHtgiq1kS8myuAtGh2dVeukCp196pCZC9VI0NiEmk2M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