mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 16:50:23 +00:00
Compare commits
No commits in common. "6d0b5f77119c929879c35765dd4bdca4f5631a17" and "6dac0d7b1310319c8a3ca97f00bcaa16fd6493f0" have entirely different histories.
6d0b5f7711
...
6dac0d7b13
11 changed files with 21 additions and 43 deletions
1
.envrc
1
.envrc
|
|
@ -1 +1,2 @@
|
||||||
use flake
|
use flake
|
||||||
|
PATH_add bin
|
||||||
|
|
|
||||||
|
|
@ -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
4
bin/deploy-home
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
home-manager switch --flake .#$USER@$(hostname)
|
||||||
4
bin/deploy-nixos
Executable file
4
bin/deploy-nixos
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||||
4
bin/deploy-vps
Executable file
4
bin/deploy-vps
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
nixos-rebuild switch --flake .#vps --target-host root@vps
|
||||||
|
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.udiskie = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
programs_options = {
|
|
||||||
file_manager = "${pkgs.xfce.thunar}/bin/thunar";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -8,6 +8,5 @@
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./zerotierone.nix
|
./zerotierone.nix
|
||||||
./udisks2.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,5 @@
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
useTextGreeter = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
services.udisks2.enable = true;
|
|
||||||
}
|
|
||||||
21
justfile
21
justfile
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue