initial commit x2

This commit is contained in:
sophron
2025-06-23 00:47:36 +05:00
commit f2f225110a
193 changed files with 4737 additions and 0 deletions

33
system/user.nix Normal file
View File

@@ -0,0 +1,33 @@
{ config, pkgs, ... }: {
users.users = {
fox = {
isNormalUser = true;
extraGroups = [ "wheel" "input" "networkmanager" "video" "audio" ];
shell = pkgs.zsh;
};
};
services.getty.autologinUser = "fox";
environment.loginShellInit = ''
[[ "$(tty)" == /dev/tty1 ]] && Hyprland
'';
security = {
polkit = {
enable = true;
};
sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/poweroff";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
};
};
}