From 43e57d1f769f201701ad8609553ababc75619c55 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 17 Sep 2024 10:39:25 -0400 Subject: [PATCH] run0? --- justfile | 6 +++--- nix/etcnixos/common.nix | 28 +++++++++++++++------------- nix/etcnixos/flake.lock | 6 +++--- nix/home-manager/flake.lock | 6 +++--- nix/home-manager/progs/fish.nix | 5 ++++- 5 files changed, 28 insertions(+), 23 deletions(-) diff --git a/justfile b/justfile index d15b366..1aa8b6a 100644 --- a/justfile +++ b/justfile @@ -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 diff --git a/nix/etcnixos/common.nix b/nix/etcnixos/common.nix index 69578dc..9994592 100644 --- a/nix/etcnixos/common.nix +++ b/nix/etcnixos/common.nix @@ -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" ]; diff --git a/nix/etcnixos/flake.lock b/nix/etcnixos/flake.lock index 519475c..a567667 100644 --- a/nix/etcnixos/flake.lock +++ b/nix/etcnixos/flake.lock @@ -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": { diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index fcba03a..1f37947 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -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": { diff --git a/nix/home-manager/progs/fish.nix b/nix/home-manager/progs/fish.nix index 05228f3..a1c78cb 100644 --- a/nix/home-manager/progs/fish.nix +++ b/nix/home-manager/progs/fish.nix @@ -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";