feat(firefox): only set all profiles for steveej; nix fmt
This commit is contained in:
parent
aa1aa835d4
commit
1083d0e717
36 changed files with 709 additions and 1201 deletions
|
@ -1,43 +1,52 @@
|
|||
{ lib, config }:
|
||||
let
|
||||
keys = import ../../variables/keys.nix;
|
||||
deepMergeAttrsets =
|
||||
listOfAttrsets: lib.foldl' (acc: cur: lib.recursiveUpdate acc cur) { } listOfAttrsets;
|
||||
in
|
||||
{
|
||||
mkUser =
|
||||
args:
|
||||
lib.mkMerge [
|
||||
{
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"docker"
|
||||
"podman"
|
||||
"wheel"
|
||||
"libvirtd"
|
||||
"networkmanager"
|
||||
"vboxusers"
|
||||
"users"
|
||||
"input"
|
||||
"audio"
|
||||
"video"
|
||||
"cdrom"
|
||||
"adbusers"
|
||||
"dialout"
|
||||
"cdrom"
|
||||
"fuse"
|
||||
"adbusers"
|
||||
"scanner"
|
||||
"lp"
|
||||
"kvm"
|
||||
];
|
||||
openssh.authorizedKeys.keys = keys.users.steveej.openssh;
|
||||
inherit deepMergeAttrsets;
|
||||
|
||||
# TODO: investigate why this secret cannot be found
|
||||
# openssh.authorizedKeys.keyFiles = [
|
||||
# config.sops.secrets.sharedSshKeys-steveej.path
|
||||
# ];
|
||||
}
|
||||
args
|
||||
];
|
||||
mkUser =
|
||||
args@{ username, ... }:
|
||||
{
|
||||
users.users.${username} = deepMergeAttrsets [
|
||||
{
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"docker"
|
||||
"podman"
|
||||
"wheel"
|
||||
"libvirtd"
|
||||
"networkmanager"
|
||||
"vboxusers"
|
||||
"users"
|
||||
"input"
|
||||
"audio"
|
||||
"video"
|
||||
"cdrom"
|
||||
"adbusers"
|
||||
"dialout"
|
||||
"cdrom"
|
||||
"fuse"
|
||||
"adbusers"
|
||||
"scanner"
|
||||
"lp"
|
||||
"kvm"
|
||||
];
|
||||
openssh.authorizedKeys.keys = keys.users.steveej.openssh;
|
||||
|
||||
# TODO: investigate why this secret cannot be found
|
||||
# openssh.authorizedKeys.keyFiles = [
|
||||
# config.sops.secrets.sharedSshKeys-steveej.path
|
||||
# ];
|
||||
}
|
||||
|
||||
(builtins.removeAttrs args [ "username" ])
|
||||
];
|
||||
|
||||
home-manager.users.${username}.home.username = username;
|
||||
};
|
||||
|
||||
disk = rec {
|
||||
# TODO: verify the GPT PARTLABEL cap at 36 chars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue