diff --git a/home/README.md b/home/README.md index 591c59a..7f9290b 100644 --- a/home/README.md +++ b/home/README.md @@ -1,6 +1,5 @@ # Home-Manager - Create `~/.config/nixpkgs/home.nix` with: ```nix {pkgs, ...}: diff --git a/nixos/README.md b/nixos/README.md new file mode 100644 index 0000000..2d5a29d --- /dev/null +++ b/nixos/README.md @@ -0,0 +1,37 @@ +# NixOS + +Create `/etc/nixos/configuration.nix` with: +```nix +{ 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` diff --git a/nixos/configuration.nix b/nixos/configuration.nix new file mode 100644 index 0000000..700b7ac --- /dev/null +++ b/nixos/configuration.nix @@ -0,0 +1,35 @@ +# 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, ... }: + +{ + 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" ; + }; + }; +} +