summaryrefslogtreecommitdiff
path: root/os/common
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-04 14:08:26 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-04 14:29:35 +0530
commit84073038e22d3201ac0176a94527c040bb153e9e (patch)
tree54e545de4264b5c776fb26c574d532e4ec84933d /os/common
parent364ded5b5ab55becf9e6904bebe2b67f9cfa343a (diff)
home, os: move user pkgs to home
Diffstat (limited to 'os/common')
-rw-r--r--os/common/configuration.nix18
1 files changed, 4 insertions, 14 deletions
diff --git a/os/common/configuration.nix b/os/common/configuration.nix
index a3dd494..4d2ac87 100644
--- a/os/common/configuration.nix
+++ b/os/common/configuration.nix
@@ -23,6 +23,7 @@ in
defaultSopsFile = ../${host}/secrets.yaml;
age.keyFile = "/var/secrets/${host}.sops";
};
+
system.stateVersion = "24.11";
nix.settings.experimental-features = [ "flakes" "nix-command" ];
@@ -35,21 +36,7 @@ in
uid = 1000;
isNormalUser = true;
description = email;
-
extraGroups = [ "wheel" ];
- packages = with pkgs; [
- bc
- unzip
- htop
- curl
- file
- dig
- tcpdump
- mtr
- nnn
- ps_mem
- brightnessctl
- ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAcCendbKbeoc7hYEEcBt9wwtSXrJUgJ2SuYARO0zPAX sinan@veu"
@@ -59,6 +46,7 @@ in
time.timeZone = "Asia/Kolkata";
networking.useDHCP = false;
+
environment = {
binsh = "${lib.getExe pkgs.dash}";
systemPackages = with pkgs; [
@@ -76,10 +64,12 @@ in
grep = "grep --color=auto";
};
};
+
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
+
programs.bash.promptInit = ''
if [ "$UID" -ne 0 ]; then
PROMPT_COLOR="1;32m"