From 039e5d778fc053493f0af365780d1b9168bc5033 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 17 Jun 2024 21:03:36 +0200 Subject: [PATCH] feat: remove user simon --- README.md | 1 - users/simon/default.nix | 47 ------------------------------ users/simon/impermanence.nix | 9 ------ users/simon/simon.nix | 5 ---- users/simon/ssh.nix | 56 ------------------------------------ 5 files changed, 118 deletions(-) delete mode 100644 users/simon/default.nix delete mode 100644 users/simon/impermanence.nix delete mode 100644 users/simon/simon.nix delete mode 100644 users/simon/ssh.nix diff --git a/README.md b/README.md index 98b8dc2..05329e9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ 🖥️ | desktopnix | Intel i5-8600K
NVIDIA GeForce GTX 1080
32 GiB RAM | Patrick's desktop, used for most development and gaming 🖥️ | elisabeth | AMD Ryzen 7 5800X
32 GiB RAM | Server running most cloud services 🖥️ | maddy | Hetzner VPS | Static IP server running mail -💻 | gojo | ? |Simons Laptop ## User Configuration This showcases my end user setup, which I dailydrive on all my hosts. diff --git a/users/simon/default.nix b/users/simon/default.nix deleted file mode 100644 index 2108953..0000000 --- a/users/simon/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - pkgs, - lib, - minimal, - config, - ... -}: -lib.optionalAttrs (!minimal) { - users.users.simon = { - shell = pkgs.zsh; - isNormalUser = true; - uid = 1000; - createHome = true; - extraGroups = [ - "wheel" - "audio" - "video" - "input" - ]; - group = "simon"; - hashedPassword = config.secrets.secrets.global.users.simon.passwordHash; - autoSubUidGidRange = false; - }; - users.groups.simon.gid = config.users.users.simon.uid; - programs.dconf.enable = true; - - home-manager.users.simon = { - imports = [ - ../common - ../common/impermanence.nix - - ../common/programs/htop.nix - ../common/programs/direnv.nix - ../common/programs/firefox.nix - ../common/programs/nvim - ../common/programs/gdb.nix - ../common/programs/git.nix - ../common/programs/kitty.nix - ../common/graphical/wayland - ../common/graphical/Xorg - - ./simon.nix - ./impermanence.nix - ./ssh.nix - ]; - }; -} diff --git a/users/simon/impermanence.nix b/users/simon/impermanence.nix deleted file mode 100644 index c8e5170..0000000 --- a/users/simon/impermanence.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - home = { - persistence."/state" = { - directories = [ - "Downloads" - ]; - }; - }; -} diff --git a/users/simon/simon.nix b/users/simon/simon.nix deleted file mode 100644 index 0fb86b0..0000000 --- a/users/simon/simon.nix +++ /dev/null @@ -1,5 +0,0 @@ -{pkgs, ...}: { - home.packages = with pkgs; [ - discord - ]; -} diff --git a/users/simon/ssh.nix b/users/simon/ssh.nix deleted file mode 100644 index a12b1fe..0000000 --- a/users/simon/ssh.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - # yubikey public key parts - home.file.".ssh/1.pub".text = '' - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFmees72GMKG/rsQQRhs2I/lQnJa0uW5KmZlNBeriCh0 cardno:15 489 006 - ''; - programs.ssh = { - enable = true; - controlMaster = "auto"; - controlPersist = "5s"; - matchBlocks = let - identityFile = ["~/.ssh/1.pub"]; - in { - "elisabeth" = { - hostname = "lel.lol"; - user = "root"; - }; - - "gojo" = { - hostname = "gojo.local"; - user = "root"; - }; - - "patricknix" = { - hostname = "patricknix.local"; - user = "root"; - }; - - "testienix" = { - hostname = "testienix.local"; - user = "root"; - }; - - "desktopnix" = { - hostname = "desktopnix.local"; - user = "root"; - }; - - "valhalla" = { - hostname = "valhalla.fs.tum.de"; - user = "hanssen"; - }; - "elisabethprivate" = { - hostname = "lel.lol"; - user = "simon"; - }; - "binex" = { - hostname = "praksrv.sec.in.tum.de"; - user = "team402"; - }; - "*" = { - identitiesOnly = true; - inherit identityFile; - }; - }; - }; -}