cleanup
This commit is contained in:
@@ -169,6 +169,7 @@
|
|||||||
"kop-pc" = mkHost {
|
"kop-pc" = mkHost {
|
||||||
modules = [
|
modules = [
|
||||||
./users/kopatz
|
./users/kopatz
|
||||||
|
#./users/testuser
|
||||||
./systems/pc/configuration.nix
|
./systems/pc/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -48,8 +48,9 @@ in
|
|||||||
min-free = ${toString (100 * 1024 * 1024)}
|
min-free = ${toString (100 * 1024 * 1024)}
|
||||||
max-free = ${toString (1024 * 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;
|
nixpkgs.config.allowUnfree = true;
|
||||||
##home-manager.users.${config.mainUser.name}.home.sessionVariables = {
|
##home-manager.users.${config.mainUser.name}.home.sessionVariables = {
|
||||||
## NIX_PATH = "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";
|
## NIX_PATH = "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
pdfgrep -h -i -C 10 "$1" /synced/fh/cloud_computing/scriptum/*
|
|
||||||
@@ -26,25 +26,5 @@
|
|||||||
description = "Public key of the user";
|
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
19
users/testuser/default.nix
Normal file
19
users/testuser/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 397 KiB After Width: | Height: | Size: 397 KiB |
Reference in New Issue
Block a user