deployed laptop harmatan.
This commit is contained in:
parent
4282c8b199
commit
2bcc6c86aa
6 changed files with 43 additions and 38 deletions
|
|
@ -14,13 +14,15 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
./hardware-config.nix
|
||||
../../configs/nixos/common.nix
|
||||
../../configs/nixos/sshd.nix
|
||||
# TODO
|
||||
#../../configs/nixos/secrets.nix
|
||||
../../configs/nixos/interactive-networking.nix
|
||||
../../configs/nixos/secrets.nix
|
||||
../../configs/nixos/tailscale.nix
|
||||
../../configs/nixos/printing.nix
|
||||
../../configs/nixos/syncthing.nix
|
||||
../../configs/nixos/touchpad.nix
|
||||
../../configs/nixos/i3
|
||||
../../roles/nixos/gaming.nix
|
||||
../../roles/nixos/power-saving.nix
|
||||
({
|
||||
config,
|
||||
pkgs,
|
||||
|
|
@ -36,10 +38,9 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
networking.hostName = "harmatan";
|
||||
networking.hostId = "7a42af26";
|
||||
|
||||
# TODO
|
||||
# home-manager.sharedModules = [
|
||||
# inputs.sops-nix.homeManagerModules.sops
|
||||
# ];
|
||||
home-manager.sharedModules = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
home-manager.users.${config.host.details.user} = {
|
||||
inputs,
|
||||
osConfig,
|
||||
|
|
@ -59,19 +60,17 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
../../roles/home-manager/terminal.nix
|
||||
../../roles/home-manager/music.nix
|
||||
../../configs/home-manager/common.nix
|
||||
# TODO
|
||||
# ../../configs/home-manager/secrets.nix
|
||||
../configs/home-manager/email.nix
|
||||
../configs/home-manager/tiny-irc.nix
|
||||
../../configs/home-manager/secrets.nix
|
||||
../../configs/home-manager/email.nix
|
||||
../../configs/home-manager/tiny-irc.nix
|
||||
];
|
||||
|
||||
# TODO
|
||||
# sops = lib.mkIf (inputs ? nix-secrets) {
|
||||
# secrets = {
|
||||
# gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
# irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
# };
|
||||
# };
|
||||
sops = lib.mkIf (inputs ? nix-secrets) {
|
||||
secrets = {
|
||||
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Bootloader.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
content = {
|
||||
type = "luks";
|
||||
name = "crypted";
|
||||
passwordFile = "/tmp/secret.key";
|
||||
passwordFile = "/tmp/disk.key";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-L" "nixos" "-f"];
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
"/swap" = {
|
||||
mountpoint = "/.swapvol";
|
||||
swap.swapfile.size = "16G";
|
||||
priority = 0;
|
||||
swap.swapfile.priority = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{config, ...}: {
|
||||
config.hardware.enableRedistributableFirmware = true;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
||||
boot.initrd.kernelModules = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue