Some documentation comments.
This commit is contained in:
@@ -12,5 +12,6 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# Use some of our RAM as swap space.
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,13 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# For security reasons, we are disabling the use of regular sudo and...
|
||||||
sudo = {
|
sudo = {
|
||||||
enable = lib.mkForce false;
|
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 = {
|
sudo-rs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wheelNeedsPassword = true;
|
wheelNeedsPassword = true;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
# Setting up secrets, incomplete at the moment.
|
||||||
sops = {
|
sops = {
|
||||||
#defaultSopsFile = ../../../../private/secrets.yaml;
|
#defaultSopsFile = ../../../../private/secrets.yaml;
|
||||||
#secrets = {
|
#secrets = {
|
||||||
|
|||||||
@@ -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 = {
|
#sops.secrets = {
|
||||||
# jay_password_hash = { };
|
# jay_password_hash = { };
|
||||||
#};
|
#};
|
||||||
|
|
||||||
users = {
|
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;
|
mutableUsers = false;
|
||||||
users.jay = {
|
users.jay = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "jay";
|
description = "jay";
|
||||||
#hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
|
#hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
|
||||||
hashedPassword = "$y$j9T$oomgQFsMbc0odlNIUXEpq/$dhgLjElzaJuU3rF1wXGcSXFUWC/fP1g5mAPZizKUFQ4";
|
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" ];
|
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user