nix/nixos/configuration.nix

35 lines
913 B
Nix
Raw Normal View History

2021-10-09 01:49:34 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
2021-10-13 00:47:43 +02:00
imports = [
./hardware-configuration.nix
./repo/default-hardware.nix
./repo/desktop-sway.nix
./repo/users.nix
];
2021-10-09 01:49:34 +02:00
2021-10-13 00:47:43 +02:00
system.stateVersion = "21.05";
2021-10-13 01:13:27 +02:00
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable";
2021-10-09 01:49:34 +02:00
2021-10-13 00:47:43 +02:00
# boot
boot.zfs.requestEncryptionCredentials = []; # list -> default: true - always request for password
2021-10-09 01:49:34 +02:00
2021-10-13 00:47:43 +02:00
# --------
# specifical this maschine:
# --------
2021-10-09 01:49:34 +02:00
2021-10-13 00:47:43 +02:00
networking.hostId = "/etc/machine-id"; # zfs needed
networking.hostName = "nixos"; # Define your hostname.
# cryptsetup
# boot.initrd.luks.enable = true;
boot.initrd.luks.devices = {
"croot" = {
device = "/dev/disk/by-uuid/e75385e9-b733-49d4-91fd-6ac2fa821195" ;
};
};
2021-10-09 01:49:34 +02:00
}