Compare commits
7 commits
b6bc254c02
...
707faa6751
Author | SHA1 | Date | |
---|---|---|---|
Harald Hoyer | 707faa6751 | ||
Harald Hoyer | c405c2af83 | ||
Harald Hoyer | 2f3ccfbc5d | ||
Harald Hoyer | d3fb170fee | ||
Harald Hoyer | 34a8c1443a | ||
Harald Hoyer | af66a3f524 | ||
Harald Hoyer | be2a34bcc5 |
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
```bash
|
||||||
|
❯ nix run github:numtide/nixos-anywhere -- --flake .#hostname root@hostname --no-reboot --tty -i $HOME/.ssh/id_ed25519
|
||||||
|
... enter disk password
|
||||||
|
❯ ssh -t root@hostname systemd-cryptenroll /dev/luksdev --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=1,15
|
||||||
|
```
|
||||||
|
|
||||||
|
remote git flake
|
||||||
|
```bash
|
||||||
|
❯ sudo nixos-rebuild boot --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg
|
||||||
|
```
|
||||||
|
|
|
@ -56,10 +56,6 @@
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
homes.users."harald@nix.fedora.fritz.box".modules = with inputs; [
|
|
||||||
neovim-flake.homeManagerModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
homes.users."harald@sgx-nixos".modules = with inputs; [
|
homes.users."harald@sgx-nixos".modules = with inputs; [
|
||||||
neovim-flake.homeManagerModules.default
|
neovim-flake.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
@ -76,6 +72,10 @@
|
||||||
neovim-flake.homeManagerModules.default
|
neovim-flake.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
homes.users."harald@sgx-azure".modules = with inputs; [
|
||||||
|
neovim-flake.homeManagerModules.default
|
||||||
|
];
|
||||||
|
|
||||||
# homes.modules = with inputs; [
|
# homes.modules = with inputs; [
|
||||||
# neovim-flake.homeManagerModules.default
|
# neovim-flake.homeManagerModules.default
|
||||||
# ];
|
# ];
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
, pkgs
|
, pkgs
|
||||||
, config
|
, config
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, osConfig ? { }
|
|
||||||
, format ? "unknown"
|
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -28,10 +26,7 @@
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
# jetbrains.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ in
|
||||||
pull.ff = "only";
|
pull.ff = "only";
|
||||||
core.pager = "${pkgs.delta}/bin/delta";
|
core.pager = "${pkgs.delta}/bin/delta";
|
||||||
delta = {
|
delta = {
|
||||||
features = "decorations" ;
|
features = "decorations";
|
||||||
syntax-theme = "Dracula";
|
syntax-theme = "Dracula";
|
||||||
light = "false";
|
light = "false";
|
||||||
navigate = "true";
|
navigate = "true";
|
||||||
|
|
|
@ -58,6 +58,7 @@ in
|
||||||
};
|
};
|
||||||
enableRedistributableFirmware = lib.mkDefault true;
|
enableRedistributableFirmware = lib.mkDefault true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
|
opengl.extraPackages = with pkgs; [ intel-compute-runtime ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -78,6 +79,7 @@ in
|
||||||
# powerManagement.cpuFreqGovernor = "ondemand";
|
# powerManagement.cpuFreqGovernor = "ondemand";
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
btrfs.autoScrub.enable = true;
|
||||||
dbus.implementation = "broker";
|
dbus.implementation = "broker";
|
||||||
dbus.packages = [ pkgs.gcr ];
|
dbus.packages = [ pkgs.gcr ];
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
|
@ -127,5 +129,7 @@ in
|
||||||
flake = "git+https://git.hoyer.xyz/harald/nixcfg";
|
flake = "git+https://git.hoyer.xyz/harald/nixcfg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@ with lib.plusultra;
|
||||||
{
|
{
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
|
sops.secrets.pccs.sopsFile = ../../../.secrets/sgx/pccs.yaml;
|
||||||
|
|
||||||
plusultra = {
|
plusultra = {
|
||||||
base.enable = true;
|
base.enable = true;
|
||||||
gui.enable = false;
|
gui.enable = false;
|
||||||
|
@ -25,10 +27,6 @@ with lib.plusultra;
|
||||||
security.tpm2.enable = false;
|
security.tpm2.enable = false;
|
||||||
security.tpm2.abrmd.enable = false;
|
security.tpm2.abrmd.enable = false;
|
||||||
|
|
||||||
sops.secrets.pccs = {
|
|
||||||
sopsFile = ../../../.secrets/sgx/pccs.yaml; # bring your own password file
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
services.aesmd.enable = true;
|
services.aesmd.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue