my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

base: switch to doas

june 678a2294 36c527cd

+22 -14
+4 -2
external/zsh/functions.zsh
··· 1 1 function nixos-rebuild() { 2 - sudo nixos-rebuild --no-reexec --flake "$HOME/dotfiles#$(hostname)" --log-format internal-json -v "$@" |& nom --json 2 + # https://github.com/NixOS/nixpkgs/issues/275018 3 + doas /run/current-system/sw/bin/nixos-rebuild --no-reexec --flake "$HOME/dotfiles#$(hostname)" --log-format internal-json -v "$@" |& nom --json 3 4 } 4 5 5 6 function nixos-rebuild-seber() { 6 - sudo nixos-rebuild --no-reexec --flake "$HOME/dotfiles#seber" --log-format internal-json -v --use-remote-sudo --ask-sudo-password --target-host seber "$@" |& nom --json 7 + # https://github.com/NixOS/nixpkgs/issues/275018 8 + /run/current-system/sw/bin/nixos-rebuild --no-reexec --flake "$HOME/dotfiles#seber" --log-format internal-json -v --sudo --target-host seber "$@" |& nom --json 7 9 } 8 10 9 11 function nixpkgs-build() {
+1 -1
external/zsh/prompt.zsh
··· 46 46 47 47 if [[ "$last_command" == 'car' || "$last_command" == 'cat' || "$last_command" == 'head' || "$last_command" == 'tail' || "$last_command" == 'tac' || "$last_command" == 'nc' || "$last_command" == 'ncat' || "$last_command" == 'netcat' || "$last_command" == 'kitget' ]]; then 48 48 baseprompt+='😻' 49 - elif [[ "$last_command" == 'sudo' ]]; then 49 + elif [[ "$last_command" == 'doas' || "$last_command" == 'sudo' ]]; then 50 50 baseprompt+='🙀' 51 51 elif (( last_status == 0 )); then 52 52 baseprompt+='😺'
+3 -1
home/modules/programs/zen-browser.nix
··· 22 22 alpine = { 23 23 name = "Aplpine Packages"; 24 24 definedAliases = [ "@alpine" ]; 25 - urls = [ { template = "https://pkgs.alpinelinux.org/packages?name={searchTerms}&branch=edge&repo=&arch="; } ]; 25 + urls = [ 26 + { template = "https://pkgs.alpinelinux.org/packages?name={searchTerms}&branch=edge&repo=&arch="; } 27 + ]; 26 28 iconMapObj."16" = "https://search.nixos.org/favicon.png"; 27 29 }; 28 30 nixpkgs = {
+3
modules/base/environment.nix
··· 1 + { pkgs, ... }: 1 2 { 2 3 environment.localBinInPath = true; 4 + 5 + environment.systemPackages = [ pkgs.git ]; 3 6 }
+11 -9
modules/base/security.nix
··· 1 1 { 2 - security.sudo-rs = { 2 + security.sudo.enable = false; 3 + 4 + security.doas = { 3 5 enable = true; 4 - execWheelOnly = true; 5 - extraConfig = "Defaults !pwfeedback"; 6 + wheelNeedsPassword = true; 6 7 extraRules = [ 7 8 { 8 9 groups = [ "wheel" ]; 9 - commands = [ 10 - { 11 - command = "/run/current-system/sw/bin/nixos-rebuild"; 12 - options = [ "NOPASSWD" ]; 13 - } 14 - ]; 10 + keepEnv = true; 11 + persist = true; 12 + } 13 + { 14 + groups = [ "wheel" ]; 15 + cmd = "/run/current-system/sw/bin/nixos-rebuild"; 16 + noPass = true; 15 17 } 16 18 ]; 17 19 };
-1
systems/seber/default.nix
··· 24 24 25 25 environment.systemPackages = with pkgs; [ 26 26 linuxquota 27 - git 28 27 vim 29 28 htop 30 29 ];