refactor: switch to new luks config setup
This commit is contained in:
parent
2dde331bbb
commit
f779d246bc
|
@ -1,14 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.luks.devices = [
|
||||
{
|
||||
name = "root";
|
||||
boot.initrd.luks.devices = {
|
||||
root = {
|
||||
device = "/dev/disk/by-partlabel/nixos";
|
||||
preLVM = true;
|
||||
allowDiscards = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
|
|
@ -28,10 +28,38 @@ with pkgs;
|
|||
};
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
pinentry-program ${pkgs.pinentry-gnome}/bin/pinentry-gnome3
|
||||
'';
|
||||
};
|
||||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Felix Tenley";
|
||||
userEmail = "dev@felschr.com";
|
||||
ignores = [".direnv"];
|
||||
signing = {
|
||||
key = "22A6 DD21 EE66 E73D D4B9 3F20 A12D 7C9D 2FD3 4458";
|
||||
signByDefault = true;
|
||||
};
|
||||
extraConfig = {
|
||||
pull = { rebase = true; };
|
||||
rebase = { autoStash = true; };
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
Loading…
Reference in a new issue