Remove unused users
This commit is contained in:
@@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
../common/global
|
../common/global
|
||||||
../common/users/julian
|
../common/users/julian
|
||||||
../common/users/yukari
|
|
||||||
../common/users/pob
|
|
||||||
../common/optional/binarycaches.nix
|
../common/optional/binarycaches.nix
|
||||||
|
|
||||||
../common/optional/remote-builder.nix
|
../common/optional/remote-builder.nix
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.mutableUsers = false;
|
|
||||||
users.users.pob = {
|
|
||||||
description = "A helper user to use another profile for some applications";
|
|
||||||
group = "pob";
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"networkmanager"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
wineWowPackages.stable # 32-bit and 64-bit wine
|
|
||||||
winetricks
|
|
||||||
];
|
|
||||||
};
|
|
||||||
users.groups.pob = {};
|
|
||||||
|
|
||||||
security.sudo.extraConfig = ''
|
|
||||||
julian ALL=(pob) NOPASSWD: ALL
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
outputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.mutableUsers = false;
|
|
||||||
users.users.yukari = {
|
|
||||||
description = "Yukari";
|
|
||||||
group = "yukari";
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"networkmanager"
|
|
||||||
"audio"
|
|
||||||
"network"
|
|
||||||
"video"
|
|
||||||
"podman"
|
|
||||||
"docker"
|
|
||||||
"git"
|
|
||||||
"gamemode"
|
|
||||||
];
|
|
||||||
|
|
||||||
createHome = true;
|
|
||||||
hashedPassword = "$y$j9T$rGuTL0rfiy7ht8L58BGCw0$fN.KwHjYlIitFEPHndKvV06ezgeWzP3/58o1kkviZwB";
|
|
||||||
packages = [pkgs.home-manager];
|
|
||||||
};
|
|
||||||
users.groups.yukari = {};
|
|
||||||
|
|
||||||
home-manager.users.yukari = {
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
../../../../homes/julian/features/fonts
|
|
||||||
../../../../homes/julian/features/suites/cli
|
|
||||||
]
|
|
||||||
++ (builtins.attrValues outputs.homeManagerModules);
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = lib.mkDefault "yukari";
|
|
||||||
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
||||||
stateVersion = lib.mkDefault "23.11";
|
|
||||||
|
|
||||||
sessionPath = ["$HOME/.local/bin"];
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
arandr
|
|
||||||
calibre # ebook manager and viewer
|
|
||||||
# digikam
|
|
||||||
discord
|
|
||||||
discord-ptb # in case discord updates take their time
|
|
||||||
# dvdisaster
|
|
||||||
# element-desktop
|
|
||||||
# rocketchat-desktop
|
|
||||||
thunderbird
|
|
||||||
telegram-desktop # telegram
|
|
||||||
# schildichat-desktop # not updated regularly
|
|
||||||
nheko
|
|
||||||
evince # Simple pdf reader, good for focusing on document content
|
|
||||||
firefox
|
|
||||||
vivaldi
|
|
||||||
# geogebra
|
|
||||||
cheese
|
|
||||||
handbrake
|
|
||||||
# kitty # Terminal, already available as feature
|
|
||||||
libnotify
|
|
||||||
libreoffice
|
|
||||||
mate.engrampa
|
|
||||||
nomacs # Image viewer
|
|
||||||
kdePackages.okular # Pdf reader with many features, good for commenting documents
|
|
||||||
pavucontrol
|
|
||||||
qalculate-gtk # Nice gui calculator
|
|
||||||
qpdfview
|
|
||||||
# qutebrowser
|
|
||||||
# realvnc-vnc-viewer
|
|
||||||
# rustdesk
|
|
||||||
tor-browser
|
|
||||||
# frajul.pob-dev-version # Path of Building
|
|
||||||
vlc
|
|
||||||
wineWowPackages.stable # 32-bit and 64-bit wine
|
|
||||||
winetricks
|
|
||||||
xclip # x11 clipboard access from terminal
|
|
||||||
xfce.mousepad # simple text editor
|
|
||||||
xournalpp # Edit pdf files
|
|
||||||
zoom-us # Video conferencing
|
|
||||||
zotero # Manage papers and other sources
|
|
||||||
pdfpc # Present slides in pdf form
|
|
||||||
];
|
|
||||||
};
|
|
||||||
programs = {
|
|
||||||
home-manager.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user