diff options
author | tzlil <tzlils@protonmail.com> | 2023-07-29 20:53:14 +0300 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-07-29 20:53:14 +0300 |
commit | feefcfc89b00d4955dbb3314c20be035f3db206f (patch) | |
tree | 5099a13763dcfd274cae83af4dbac0bf4bef6cce /profiles/user.nix | |
parent | 11526bdd2bb3b4b445665aa671e4bc72021b8183 (diff) |
disko for laptop, wip rewrite
Diffstat (limited to 'profiles/user.nix')
-rw-r--r-- | profiles/user.nix | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/profiles/user.nix b/profiles/user.nix deleted file mode 100644 index 7355e85..0000000 --- a/profiles/user.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ - pkgs, - lib, - config, - inputs, - ... -}: { - config = { - age.secrets.id_ed25519 = { - file = ../secrets/id_ed25519.age; - mode = "600"; - owner = "tzlil"; - group = "users"; - }; - - programs.fish.enable = true; # needed now - users.users.tzlil = { - isNormalUser = true; - description = "Me"; - extraGroups = ["wheel"]; - packages = [pkgs.git]; - shell = pkgs.fish; - hashedPassword = "$6$FAQYKz3OCtRNOP7h$XsApvP.r./Jv5MRI1idDI9BMnA26xxEvXFlE61Zls.QA3EK2x76XsetdpxSlgViylnRwRuq5XQMc3GeAJ7tum1"; - # passwordFile = config.age.secrets.password.path; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMDyzrs9sbstv3KFK5FV8qYlSknnEy8Cn+qch4dJLmHA" - ]; - }; - - nix.settings.allowed-users = ["root" "tzlil"]; - nix.settings.trusted-users = ["root" "tzlil"]; - - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - backupFileExtension = "backup"; - }; - - home-manager.users.tzlil = {pkgs, ...} @ hm: { - home = { - stateVersion = "22.05"; - username = "tzlil"; - homeDirectory = "/home/tzlil"; - sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/ssh-agent"; - }; - programs.ssh = { - enable = true; - userKnownHostsFile = builtins.toFile "known_hosts" " - pc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINu5lRKb1Ao4uj1tAV10QHKIvXfC8ncQ65b+oJtxrd1e - vm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHS6LK6rCmJCR/rKVJYVmJTL8fAdyJSLlgC3mesd6QVS - vps ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMdOuj27GB703ZRKRqhytlaLJsKucaRa//yswxijAZT7 - "; - matchBlocks."*".identityFile = config.age.secrets."id_ed25519".path; - }; - systemd.user.services.ssh-agent = let - agentTimeout = "1h"; - in { - Unit = { - Description = "SSH Agent"; - After = ["default.target"]; - }; - Service = { - ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent"; - ExecStart = - "${pkgs.openssh}/bin/ssh-agent " - + "-t ${agentTimeout} " - + "-a %t/ssh-agent"; - StandardOutput = "null"; - Type = "forking"; - Restart = "on-failure"; - SuccessExitStatus = "0 2"; - }; - }; - }; - }; -} |