better flake using devenv

This commit is contained in:
John Lancaster
2024-12-05 00:06:59 -06:00
parent afbc973248
commit cc6cb9ffcc
4 changed files with 374 additions and 72 deletions

View File

@@ -25,7 +25,7 @@ in
(pkgs.writeShellScriptBin "nrbsu" "sudo nix-channel --update && sudo nixos-rebuild switch")
(pkgs.writeShellScriptBin "ads" ''
cd ${adPath}
nix develop
nix develop --no-pure-eval ${adNixPath}/appdaemon
'')
(pkgs.writeShellScriptBin "ad-clone" ''
if [ ! -d ${adPath} ]; then
@@ -69,10 +69,12 @@ in
users.users.appdaemon = {
isNormalUser = true;
home = "${adHome}";
extraGroups = [ "wheel" "docker"];
extraGroups = [ "wheel" "docker" ];
openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ];
};
nix.settings.trusted-users = [ "root" "@wheel" ];
home-manager = {
useGlobalPkgs = true;
users.appdaemon = { pkgs, ... }: {