nix/nixos
genofire 8ce3f7db42 nixos: cleanup and documentat it 2021-10-09 01:49:34 +02:00
..
README.md nixos: cleanup and documentat it 2021-10-09 01:49:34 +02:00
configuration.nix nixos: cleanup and documentat it 2021-10-09 01:49:34 +02:00
default.nix nixos: cleanup confugration.nix and rename to default.nix 2021-10-09 01:34:51 +02:00
desktop.nix nixos: add smartcard support 2021-10-09 01:09:39 +02:00
genofire.nix nixos: fix swaylock 2021-10-09 01:09:18 +02:00

README.md

NixOS

Create /etc/nixos/configuration.nix with:

{ config, pkgs, ... }:

{
  imports =
    [
      ./hardware-configuration.nix
      ./repo/default.nix
      ./repo/desktop.nix
      ./repo/genofire.nix
    ];

  system.stateVersion = "21.05";

  # boot
  boot.zfs.requestEncryptionCredentials = []; # list -> default: true - always request for password

  # --------
  # specifical this maschine:
  # --------

  networking.hostId = "6a465f93"; # zfs needed
  networking.hostName = "fireEmerald"; # Define your hostname.
  # cryptsetup
  # boot.initrd.luks.enable = true;
  boot.initrd.luks.devices = {
    "croot" = {
      device = "/dev/disk/by-uuid/e75385e9-b733-49d4-91fd-6ac2fa821195" ;
    };
  };
}

and run nixos-rebuild switch --upgrade