This commit is contained in:
Kopatz
2026-01-03 13:20:11 +01:00
parent 2cc8b5ac12
commit 07d86dbf02
9 changed files with 22 additions and 23 deletions

BIN
data.log

Binary file not shown.

View File

@@ -169,6 +169,7 @@
"kop-pc" = mkHost {
modules = [
./users/kopatz
#./users/testuser
./systems/pc/configuration.nix
];
};

View File

@@ -48,8 +48,9 @@ in
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
#nixPath = [ "nixpkgs=flake:nixpkgs" ];
#nixPath = [ "nixpkgs=${pkgsVersion.outPath}" ];
};
#nix.nixPath = [ "nixpkgs=flake:nixpkgs" ];
nixpkgs.config.allowUnfree = true;
##home-manager.users.${config.mainUser.name}.home.sessionVariables = {
## NIX_PATH = "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";

View File

@@ -1,2 +0,0 @@
#!/usr/bin/env bash
pdfgrep -h -i -C 10 "$1" /synced/fh/cloud_computing/scriptum/*

View File

@@ -26,25 +26,5 @@
description = "Public key of the user";
};
};
custom.user = {
name = lib.mkOption {
default = "mainuser";
description = ''
username
'';
};
layout = lib.mkOption {
default = "de";
description = "keyboard layout";
};
variant = lib.mkOption {
default = "";
description = "keyboard variant";
};
sshKey = lib.mkOption {
default = throw "No ssh key specified";
description = "Public key of the user";
};
};
};
}

View File

@@ -0,0 +1,19 @@
{
inputs,
pkgs,
lib,
config,
...
}:
{
imports = [ ../default.nix ];
programs.zsh.enable = true;
users.users.testuser = {
isNormalUser = true;
initialPassword = "1";
description = "Test user";
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
};
}

View File

Before

Width:  |  Height:  |  Size: 397 KiB

After

Width:  |  Height:  |  Size: 397 KiB