Add home-conf to kvm-vm

This commit is contained in:
Tristan D. 2023-12-10 05:40:04 +01:00
parent 2de8b412a0
commit ee625d0191
Signed by: tristan
SSH key fingerprint: SHA256:3RU4RLOoM8oAjFU19f1W6t8uouZbA7GWkaSW6rjp1k8
8 changed files with 46 additions and 19 deletions

View file

@ -3,6 +3,5 @@
, pkgs , pkgs
, ... , ...
}: { }: {
home.homeDirectory = "/home/${config.home.username}";
xdg.enable = true; xdg.enable = true;
} }

View file

@ -38,7 +38,6 @@ in
libsForQt5.kdeconnect-kde libsForQt5.kdeconnect-kde
libsForQt5.plasma-vault libsForQt5.plasma-vault
libsForQt5.plasma-browser-integration libsForQt5.plasma-browser-integration
neofetch
nextcloud-client nextcloud-client
onlyoffice-bin onlyoffice-bin
protonup-qt protonup-qt

View file

@ -203,9 +203,10 @@ in
gcc gcc
imagemagick imagemagick
libtool libtool
nodejs_20 neofetch
nil nil
nixpkgs-fmt nixpkgs-fmt
nodejs_20
pandoc pandoc
python311Full python311Full
rcm rcm

View file

@ -9,6 +9,16 @@
# TODO allow primary/node config option to listen/send metrics to central location # TODO allow primary/node config option to listen/send metrics to central location
services.netdata = { services.netdata = {
enable = true; enable = true;
package = pkgs.unstable-os.netdata;
python = {
enable = true;
extraPackages = ps: [
ps.psycopg2
ps.docker
ps.dnspython
];
};
config = { config = {
global = { global = {
@ -26,6 +36,9 @@
"dbengine tier 2 multihost disk space MB" = 512; "dbengine tier 2 multihost disk space MB" = 512;
"cleanup obsolete charts after secs" = 600; "cleanup obsolete charts after secs" = 600;
}; };
plugins = {
"go.d" = "yes";
};
ml = { ml = {
# enable machine learning # enable machine learning
"enabled" = "yes"; "enabled" = "yes";

View file

@ -2,6 +2,8 @@
, pkgs , pkgs
, modulesPath , modulesPath
, lib , lib
, inputs
, system
, ... , ...
}: { }: {
imports = [ imports = [
@ -31,8 +33,6 @@
extraModulePackages = [ ]; extraModulePackages = [ ];
}; };
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
netmaker netmaker
]; ];
@ -72,12 +72,6 @@
isNormalUser = true; isNormalUser = true;
description = "reopen5194"; description = "reopen5194";
extraGroups = [ "docker" "networkmanager" "wheel" ]; extraGroups = [ "docker" "networkmanager" "wheel" ];
packages = with pkgs; [
firefox
kate
emacs
# thunderbird
];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4fBDj1/He/uimO97RgjGWZLAimTrLmIlYS2ekD73GC tristan@arch-pulse" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4fBDj1/He/uimO97RgjGWZLAimTrLmIlYS2ekD73GC tristan@arch-pulse"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDP8ztBIgQsYh7LefSKtuDRYDWNheZWbmIr51T/Np/jc tristand@nixos-pulse" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDP8ztBIgQsYh7LefSKtuDRYDWNheZWbmIr51T/Np/jc tristand@nixos-pulse"
@ -85,6 +79,19 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuH8L7mQDg86uJME6jndOu4niwLMASuJKpdbJU8Hfet tristan+desktop@vault81.de" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuH8L7mQDg86uJME6jndOu4niwLMASuJKpdbJU8Hfet tristan+desktop@vault81.de"
]; ];
}; };
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.reopen5194 = import ../../users/admin-thin.nix {
username = "reopen5194";
inherit pkgs;
inherit config;
inherit inputs;
inherit system;
inherit lib;
};
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View file

@ -2,6 +2,7 @@
, config , config
, inputs , inputs
, system , system
, username
, ... , ...
}: { }: {
imports = [ imports = [
@ -14,9 +15,12 @@
../home-mods/virt ../home-mods/virt
]; ];
config.home = { config = {
username = "tristand"; home = {
username = username;
homeDirectory = "/home/${username}";
stateVersion = "23.05"; stateVersion = "23.05";
};
}; };
} }

View file

@ -2,20 +2,20 @@
, config , config
, inputs , inputs
, system , system
, username
, ... , ...
}: { }: {
imports = [ imports = [
../home-mods/audio ../home-mods/audio
../home-mods/common ../home-mods/common
../home-mods/desktop
../home-mods/firefox ../home-mods/firefox
../home-mods/plasma ../home-mods/plasma
../home-mods/shell ../home-mods/shell
../home-mods/virt
]; ];
config.home = { config.home = {
username = "tester"; username = username;
homeDirectory = "/home/${username}";
stateVersion = "23.05"; stateVersion = "23.05";
}; };

View file

@ -25,14 +25,18 @@
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
users.tester = import ./tester.nix { users.tester = import ./admin-thin.nix {
username = "tester";
inherit pkgs; inherit pkgs;
inherit config; inherit config;
inherit inputs; inherit inputs;
inherit system; inherit system;
inherit lib; inherit lib;
}; };
users.tristand = import ./tristand.nix { users.tristand = import ./admin-fat.nix {
username = "tristand";
inherit pkgs; inherit pkgs;
inherit config; inherit config;
inherit inputs; inherit inputs;