Compare commits

..

No commits in common. "6d0b5f77119c929879c35765dd4bdca4f5631a17" and "6dac0d7b1310319c8a3ca97f00bcaa16fd6493f0" have entirely different histories.

11 changed files with 21 additions and 43 deletions

1
.envrc
View file

@ -1 +1,2 @@
use flake use flake
PATH_add bin

View file

@ -11,8 +11,8 @@ My personal NixOS and home-manager configurations.
```sh ```sh
nix develop nix develop
just deploy-nixos # Rebuild and switch the current NixOS system on this host deploy-nixos # Rebuild and switch the current NixOS system on this host
just deploy-home # Apply Home Manager configuration for the current user deploy-home # Apply Home Manager configuration for the current user
just deploy-vps # Rebuild and switch NixOS on the remote VPS deploy-vps # Rebuild and switch NixOS on the remote VPS
``` ```

4
bin/deploy-home Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# vim: ft=sh
home-manager switch --flake .#$USER@$(hostname)

4
bin/deploy-nixos Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# vim: ft=sh
sudo nixos-rebuild switch --flake .#$(hostname)

4
bin/deploy-vps Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# vim: ft=sh
nixos-rebuild switch --flake .#vps --target-host root@vps

View file

@ -89,8 +89,11 @@
pkgs.sops pkgs.sops
pkgs.git pkgs.git
pkgs.git-crypt pkgs.git-crypt
pkgs.just
]; ];
shellHook = ''
export PATH=${builtins.toPath ./bin}:$PATH
'';
}; };
} }
); );

View file

@ -1,12 +0,0 @@
{ pkgs, ... }:
{
services.udiskie = {
enable = true;
settings = {
programs_options = {
file_manager = "${pkgs.xfce.thunar}/bin/thunar";
};
};
};
}

View file

@ -8,6 +8,5 @@
./flatpak.nix ./flatpak.nix
./restic.nix ./restic.nix
./zerotierone.nix ./zerotierone.nix
./udisks2.nix
]; ];
} }

View file

@ -9,6 +9,5 @@
user = "greeter"; user = "greeter";
}; };
}; };
useTextGreeter = true;
}; };
} }

View file

@ -1,3 +0,0 @@
{
services.udisks2.enable = true;
}

View file

@ -1,21 +0,0 @@
#!/usr/bin/env -S just --justfile
default:
@just --list
deploy-nixos:
sudo nixos-rebuild switch --flake .#$(hostname)
deploy-vps:
nixos-rebuild switch --flake .#vps --target-host root@vps
deploy-home:
home-manager switch --flake .#$USER@$(hostname)
update:
nix flake update --commit-lock-file
gc:
nix-collect-garbage -d
nix-collect-garbage --delete-older-than 7d
nix-store --gc