mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-21 09:27:51 +01:00
nixfmt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user