Removed justfile
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,3 +5,5 @@
|
|||||||
# Ignore temporary files
|
# Ignore temporary files
|
||||||
*.swp
|
*.swp
|
||||||
*~
|
*~
|
||||||
|
|
||||||
|
justfile
|
||||||
|
|||||||
@@ -1,15 +1,19 @@
|
|||||||
{ config, pkgs, lib, ...}:
|
|
||||||
{
|
{
|
||||||
users.users.boxuser = {
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
users.users.boxuser = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
group = "boxuser";
|
group = "boxuser";
|
||||||
extraGroups = ["wheel" "docker" "networkmanager"]; # Enable ‘sudo’ for the user.
|
extraGroups = ["wheel" "docker" "networkmanager"]; # Enable ‘sudo’ for the user.
|
||||||
hashedPassword = "$6$Gk6L21XBSf.YbfU1$eadMLbwvAgudTjPOLCsZfRNxfGptARnAazhs0xz/GcNEYGQS/GjLov/jJsHnPIKBNIPQJEG4XhZ3K097bfi1c1";
|
hashedPassword = "$6$Gk6L21XBSf.YbfU1$eadMLbwvAgudTjPOLCsZfRNxfGptARnAazhs0xz/GcNEYGQS/GjLov/jJsHnPIKBNIPQJEG4XhZ3K097bfi1c1";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
fastfetch
|
fastfetch
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.boxuser.shell = pkgs.bash;
|
users.users.boxuser.shell = pkgs.bash;
|
||||||
users.groups.boxuser = {};
|
users.groups.boxuser = {};
|
||||||
}
|
}
|
||||||
|
|||||||
46
justfile
46
justfile
@@ -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
|
|
||||||
Reference in New Issue
Block a user