This commit is contained in:
Vegard Bieker Matthey
2026-02-20 18:18:09 +01:00
parent 18167dca0a
commit dc8a6c8c71
127 changed files with 3804 additions and 2402 deletions

View File

@@ -2,7 +2,11 @@
{
users.users.albertba = {
isNormalUser = true;
extraGroups = [ "wheel" "drift" "nix-builder-users" ];
extraGroups = [
"wheel"
"drift"
"nix-builder-users"
];
packages = with pkgs; [
fd

View File

@@ -3,7 +3,11 @@
{
users.users.danio = {
isNormalUser = true;
extraGroups = [ "drift" "nix-builder-users" "wheel" ];
extraGroups = [
"drift"
"nix-builder-users"
"wheel"
];
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;
openssh.authorizedKeys.keys = [

View File

@@ -5,9 +5,12 @@ let
getDir = dir: builtins.readDir dir;
# find all files ending in ".nix" which are not this file, or directories, which may or may not contain a default.nix
files = dir: filterAttrs
(file: type: (type == "regular" && hasSuffix ".nix" file && file != "default.nix") || type == "directory")
(getDir dir);
files =
dir:
filterAttrs (
file: type:
(type == "regular" && hasSuffix ".nix" file && file != "default.nix") || type == "directory"
) (getDir dir);
# Turn the attrset into a list of the filenames
flatten = dir: mapAttrsToList (file: type: file) (files dir);
# Turn the filenames into absolute paths

View File

@@ -1,10 +1,16 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
users.users.felixalb = {
isNormalUser = true;
extraGroups = [
"wheel"
] ++ lib.optionals ( config.users.groups ? "libvirtd" ) [
]
++ lib.optionals (config.users.groups ? "libvirtd") [
"libvirtd"
];
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;

View File

@@ -2,7 +2,11 @@
{
users.users.frero = {
isNormalUser = true;
extraGroups = [ "wheel" "drift" "nix-builder-users" ];
extraGroups = [
"wheel"
"drift"
"nix-builder-users"
];
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII09JbtSUMurvmHpJ7TmUQctXpNVhjFYhoJ3+1ZITmMx"

View File

@@ -3,7 +3,11 @@
{
users.users.jonmro = {
isNormalUser = true;
extraGroups = [ "wheel" "drift" "nix-builder-users" ];
extraGroups = [
"wheel"
"drift"
"nix-builder-users"
];
shell = if config.programs.zsh.enable then pkgs.zsh else pkgs.bash;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEm5PfYmfl/0fnAP/3coVlvTw3/TYNLT6r/NwJHZbLAK jonrodtang@gmail.com"