This commit is contained in:
Tasia Iso 2024-04-23 17:37:56 +02:00
parent eb77f57af7
commit fa4c14e5e9
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
5 changed files with 50 additions and 5 deletions

View file

@ -4,8 +4,8 @@ if [[ -n $SSH_CONNECTION ]] ; then
curl \ curl \
-H "Title: Test" \ -H "Title: Test" \
-H "Priority: high" \ -H "Priority: high" \
-H "Tags: warning" \ -H "Tags: urgent" \
-d "$(cat /etc/hostname ): ssh session" \ -d "$(cat /etc/hostname ): ssh session ($SSH_CONNECTION)" \
ntfy.sh/tasiaiso_alerts &> /dev/null ntfy.sh/tasiaiso_alerts &> /dev/null
fi fi

View file

@ -2,7 +2,11 @@
users.users.user = { users.users.user = {
isNormalUser = true; isNormalUser = true;
description = "User"; description = "User";
extraGroups = ["networkmanager" "wheel" "syncthing" "tss"]; extraGroups = [
"networkmanager"
"wheel"
"syncthing"
];
initialPassword = "password123"; initialPassword = "password123";
}; };

View file

@ -2,7 +2,13 @@
users.users.user = { users.users.user = {
isNormalUser = true; isNormalUser = true;
description = "User"; description = "User";
extraGroups = ["networkmanager" "wheel" "syncthing" "tss"]; extraGroups = [
"networkmanager"
"wheel"
"syncthing"
"tss"
"dialout"
];
initialPassword = "password123"; initialPassword = "password123";
}; };

View file

@ -2,7 +2,13 @@
users.users.tasia = { users.users.tasia = {
isNormalUser = true; isNormalUser = true;
description = "User"; description = "User";
extraGroups = ["networkmanager" "wheel" "syncthing" "tss"]; extraGroups = [
"networkmanager"
"wheel"
"syncthing"
"tss"
"dialout"
];
initialPassword = "password123"; initialPassword = "password123";
}; };

29
home/user/home.nix Normal file
View file

@ -0,0 +1,29 @@
{pkgs, ...}: {
users.users.user = {
isNormalUser = true;
description = "User";
extraGroups = [
"networkmanager"
"wheel"
"syncthing"
"tss"
"dialout"
];
initialPassword = "password123";
};
home-manager.users.user = {pkgs, ...}: {
home.file = {
".zshrc".source = ../../dotfiles/.zshrc;
".bashrc".source = ../../dotfiles/.bashrc;
};
home.packages = with pkgs; [
#
];
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.05";
};
}