From 26d2aa6503d596742951e0e0add8ba0661812e28 Mon Sep 17 00:00:00 2001 From: kenny Date: Thu, 2 Oct 2025 16:11:18 +0300 Subject: [PATCH] Removed justfile --- .gitignore | 2 ++ hosts/box/user.nix | 14 +++++++++----- justfile | 46 ---------------------------------------------- 3 files changed, 11 insertions(+), 51 deletions(-) delete mode 100644 justfile diff --git a/.gitignore b/.gitignore index 503074f..7b82966 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ # Ignore temporary files *.swp *~ + +justfile diff --git a/hosts/box/user.nix b/hosts/box/user.nix index d17b722..7bead52 100644 --- a/hosts/box/user.nix +++ b/hosts/box/user.nix @@ -1,15 +1,19 @@ -{ config, pkgs, lib, ...}: { -users.users.boxuser = { + config, + pkgs, + lib, + ... +}: { + users.users.boxuser = { isNormalUser = true; group = "boxuser"; extraGroups = ["wheel" "docker" "networkmanager"]; # Enable ‘sudo’ for the user. hashedPassword = "$6$Gk6L21XBSf.YbfU1$eadMLbwvAgudTjPOLCsZfRNxfGptARnAazhs0xz/GcNEYGQS/GjLov/jJsHnPIKBNIPQJEG4XhZ3K097bfi1c1"; packages = with pkgs; [ - fastfetch + fastfetch ]; }; -users.users.boxuser.shell = pkgs.bash; -users.groups.boxuser = {}; + users.users.boxuser.shell = pkgs.bash; + users.groups.boxuser = {}; } diff --git a/justfile b/justfile deleted file mode 100644 index d8b62e6..0000000 --- a/justfile +++ /dev/null @@ -1,46 +0,0 @@ -hosts := "puter box" - -_check-host host: - if ! echo "{{hosts}}" | grep -qw "{{host}}"; then \ - echo "Unknown host:{{host}} \n Must be one of: {{hosts}}"; exit 1;\ - fi - -update-config: host: _check-host - alejandra . - nix flake update - git add . - git commit - sudo nixos-rebuild switch --upgrade --flake ~/haus#{{host}} - git push - -update: host: _check-host - nix flake update - git add . - git commit -m "nix flake update" - sudo nixos-rebuild switch --upgrade --flake ~/haus#{{host}} - git push - -update-and-reboot: host: _check-host - nix flake update - git add . - git commit -m "nix flake update" - sudo nixos-rebuild boot --upgrade --flake ~/haus#{{host}} - git push - -update-config-and-reboot: host: _check-host - alejandra . - nix flake update - git add . - git commit - sudo nixos-rebuild boot --upgrade --flake ~/haus#{{host}} - git push - -upgrade: host: _check-host - sudo nixos-rebuild switch --upgrade --flake ~/haus#{{host}} - -clean: - sudo nix-env --delete-generations old - sudo nix-collect-garbage --delete-older-than 30d - sudo nix store optimise - sudo rm -rf /nix/var/nix/downloads/* - sudo journalctl --vacuum-time=30d