mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
Ditch ./scripts in favour of writeShellApplication
This commit is contained in:
parent
1cd4d9dc8d
commit
fc936fdbde
3 changed files with 14 additions and 6 deletions
|
|
@ -22,6 +22,6 @@ make
|
|||
|
||||
## Directory layout
|
||||
|
||||
- `nixos`: nixos config (includes nix-darwin)
|
||||
- `home`: home-manager config
|
||||
- `nixos`: nixos config (includes nix-darwin)
|
||||
- `systems`: top-level configuration.nix('ish) for various kinds of system
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
set -x
|
||||
|
||||
sudo cryptsetup luksOpen /dev/nvme0n1p3 crypted0
|
||||
sudo mount /dev/mapper/crypted0 /extra0
|
||||
|
|
@ -104,9 +104,21 @@
|
|||
services.netdata.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cryptsetup
|
||||
lsof
|
||||
inputs.nixos-shell.defaultPackage.${system}
|
||||
|
||||
# Encrypted private directory stuff
|
||||
# See https://srid.ca/vf.enc
|
||||
cryptsetup
|
||||
(pkgs.writeShellApplication {
|
||||
name = "now-mount-priv";
|
||||
runtimeInputs = [ cryptsetup ];
|
||||
text = ''
|
||||
set -x
|
||||
sudo cryptsetup luksOpen /dev/nvme0n1p3 crypted0
|
||||
sudo mount /dev/mapper/crypted0 /extra0
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
services.openssh.permitRootLogin = "prohibit-password";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue