updates
This commit is contained in:
@@ -1,38 +1,56 @@
|
|||||||
{ pkgs, modulesPath, ... }:
|
{ pkgs, modulesPath, ... }:
|
||||||
|
let
|
||||||
|
stateVersion = "24.05";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
(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")
|
(fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master")
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(pkgs.writeShellScriptBin "nrbs" ''
|
(pkgs.writeShellScriptBin "nrbs" ''
|
||||||
nixos-rebuild switch
|
sudo nixos-rebuild switch
|
||||||
'')
|
'')
|
||||||
bash
|
bash
|
||||||
wget
|
# wget
|
||||||
git
|
git
|
||||||
eza
|
eza
|
||||||
python312
|
# python312
|
||||||
uv
|
# uv
|
||||||
appdaemon
|
appdaemon
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
services.vscode-server.enable = true;
|
services.vscode-server.enable = true;
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
security.sudo-rs = {
|
||||||
|
enable = true;
|
||||||
|
execWheelOnly = false;
|
||||||
|
wheelNeedsPassword = false;
|
||||||
|
};
|
||||||
|
|
||||||
users.users.appdaemon = {
|
users.users.appdaemon = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/srv/appdaemon";
|
home = "/srv/appdaemon";
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"sudo"
|
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
"docker"
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keyFiles = [
|
openssh.authorizedKeys.keyFiles = [ "/root/.ssh/authorized_keys" ];
|
||||||
"/srv/appdaemon/authorized_keys"
|
|
||||||
# "/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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user