This commit is contained in:
Simon Gardling 2024-09-17 10:39:25 -04:00
parent f348632d8e
commit 43e57d1f76
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
5 changed files with 28 additions and 23 deletions

View File

@ -4,11 +4,11 @@ format_home:
nixfmt ~/.config/home-manager
format_system:
doas nixfmt /etc/nixos
run0 nixfmt /etc/nixos
system_update:
doas nix flake update /etc/nixos
doas nixos-rebuild boot --impure
run0 nix flake update /etc/nixos
run0 nixos-rebuild boot --impure
home_update:
nix flake update ~/.config/home-manager

View File

@ -89,19 +89,21 @@
# Set your time zone.
time.timeZone = "America/New_York";
security = {
#lets use doas and not sudo!
doas.enable = true;
sudo.enable = false;
# Configure doas
doas.extraRules = [
{
users = [ "${username}" ];
keepEnv = true;
persist = true;
}
];
};
# security = {
# #lets use doas and not sudo!
# doas.enable = true;
# sudo.enable = false;
# # Configure doas
# doas.extraRules = [
# {
# users = [ "${username}" ];
# keepEnv = true;
# persist = true;
# }
# ];
# };
#lets use run0 instead!
security.sudo.enable = false;
age.identityPaths = [ "/home/${username}/.ssh/id_ed25519" ];

View File

@ -332,11 +332,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726582347,
"narHash": "sha256-lqqs29aKoZRax4IqBj51FEkLTV0I4+AVASlMLbg/pK4=",
"lastModified": 1726582987,
"narHash": "sha256-mvlNdlD3myhLleFls5OVqaPcCVEgji0r5CmA4gX+/b4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c1d526e8f218972060f88446b56562090cfa50cf",
"rev": "6201ced8aa80b857841f7a1212594e1e62c4d67e",
"type": "github"
},
"original": {

View File

@ -201,11 +201,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726582347,
"narHash": "sha256-lqqs29aKoZRax4IqBj51FEkLTV0I4+AVASlMLbg/pK4=",
"lastModified": 1726582987,
"narHash": "sha256-mvlNdlD3myhLleFls5OVqaPcCVEgji0r5CmA4gX+/b4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c1d526e8f218972060f88446b56562090cfa50cf",
"rev": "6201ced8aa80b857841f7a1212594e1e62c4d67e",
"type": "github"
},
"original": {

View File

@ -9,7 +9,7 @@
#fixes gnupg password entry
export GPG_TTY=(${pkgs.coreutils}/bin/tty)
#pfetch on shell start
#pfetch on shell start (disable pkgs because of execution time)
PF_INFO="ascii title os host kernel uptime memory editor wm" ${pkgs.pfetch-rs}/bin/pfetch
'';
@ -22,6 +22,9 @@
cr = "${pkgs.cargo}/bin/cargo run";
cb = "${pkgs.cargo}/bin/cargo build";
# I hate the red background
run0 = "run0 --background=\"\"";
# from DistroTube's dot files: Changing "ls" to "eza"
ls = "${eza_common} -al";
la = "${eza_common} -a";