From 0f8c6124730ea9f4453bb6bdf1abac6a5f756842 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 13 Sep 2024 23:23:38 +0000 Subject: [PATCH] updates --- configuration.nix | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index f81ce77..b469c02 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,38 +1,56 @@ { pkgs, modulesPath, ... }: +let + stateVersion = "24.05"; +in { imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") - # (import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz}/nixos") + (import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz}/nixos") (fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master") ]; environment.systemPackages = with pkgs; [ (pkgs.writeShellScriptBin "nrbs" '' - nixos-rebuild switch + sudo nixos-rebuild switch '') bash - wget + # wget git eza - python312 - uv + # python312 + # uv appdaemon ]; virtualisation.docker.enable = true; services.vscode-server.enable = true; + services.openssh.enable = true; + + security.sudo-rs = { + enable = true; + execWheelOnly = false; + wheelNeedsPassword = false; + }; users.users.appdaemon = { isNormalUser = true; home = "/srv/appdaemon"; extraGroups = [ - "sudo" "wheel" "docker" ]; - openssh.authorizedKeys.keyFiles = [ - "/srv/appdaemon/authorized_keys" - # "/root/.ssh/authorized_keys" - ]; + openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ]; }; + + home-manager = { + useGlobalPkgs = true; + users.appdaemon = { pkgs, ... }: { + home.packages = [ pkgs.uv ]; + home.stateVersion = stateVersion; + programs.ssh = { + enable = true; + }; + }; + }; + system.stateVersion = stateVersion; }