Some documentation comments.

This commit is contained in:
jay
2025-07-13 20:17:46 -04:00
parent 9047f00910
commit 4d009c46bd
4 changed files with 14 additions and 3 deletions

View File

@@ -12,5 +12,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Use some of our RAM as swap space.
zramSwap.enable = true;
}

View File

@@ -9,11 +9,14 @@
"unix-group:wheel"
];
};
# For security reasons, we are disabling the use of regular sudo and...
sudo = {
enable = lib.mkForce false;
};
# ...switching over to sudo-rs which is a Rust rewrite of sudo.
# See https://cybersecsentinel.com/cve-2025-32463-privilege-escalation-in-sudo-triggers-urgent-linux-patching/.
sudo-rs = {
enable = true;
wheelNeedsPassword = true;

View File

@@ -1,4 +1,5 @@
{ ... }: {
# Setting up secrets, incomplete at the moment.
sops = {
#defaultSopsFile = ../../../../private/secrets.yaml;
#secrets = {

View File

@@ -1,16 +1,22 @@
{ ... }: {
# Define a user account. Don't forget to set a password with passwd.
# Let's setup our user accounts here.
#sops.secrets = {
# jay_password_hash = { };
#};
users = {
# mutableUsers forces user passwords to stay as those defined in this file.
# With it set to false, you will not be able to change the password for users defined here.
mutableUsers = false;
users.jay = {
isNormalUser = true;
description = "jay";
#hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
hashedPassword = "$y$j9T$oomgQFsMbc0odlNIUXEpq/$dhgLjElzaJuU3rF1wXGcSXFUWC/fP1g5mAPZizKUFQ4";
# Gamemode group allows gamemode to set cpu governor to performance when games launch.
# See https://nixos.wiki/wiki/Gamemode
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
};
};