From 2a881249d0bf97f703c08b4120bc19423cff5050 Mon Sep 17 00:00:00 2001 From: ark-lamp-umbrella Date: Sun, 21 Apr 2024 22:44:26 -0700 Subject: [PATCH] fish remove hashing --- flake.lock | 27 +++++++++++++++++++++++++++ scripts/export.fish | 2 -- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5498109 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1713537308, + "narHash": "sha256-XtTSSIB2DA6tOv+l0FhvfDMiyCmhoRbNB+0SeInZkbk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5c24cf2f0a12ad855f444c30b2421d044120c66f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/scripts/export.fish b/scripts/export.fish index fef684e..696a25f 100644 --- a/scripts/export.fish +++ b/scripts/export.fish @@ -21,7 +21,6 @@ if fish_is_root_user else set hash1 "$(cat temp/directorylisthashed.txt)" set hash2 "$(cat temp/directorylisthashedprevious.txt)" - if [ "$hash1" != "$hash2" ] set rpass "$(logprinti "root password" "p")" if [ "$rpass" = "" ] logprintn "EXIT" "red" "empty root password" @@ -37,7 +36,6 @@ else sudo nixos-rebuild --flake $(pwd) switch logprintn "INFO" "blue" "nixos-rebuild completed" end - end set gitpush "$(logprinti "update git (Y/n)" "c")" if [ "$gitpush" = "" ] set gitpush "y"