This commit is contained in:
John Lancaster
2024-09-13 23:23:38 +00:00
parent 5cad713a36
commit 0f8c612473

View File

@@ -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;
}