nix/nixos
genofire 655e5ab373 folder restructur 2023-07-18 20:18:05 +02:00
..
desktop folder restructur 2023-07-18 20:18:05 +02:00
files nixos/default: add my tmux config ;) 2021-10-15 19:50:54 +02:00
hardware folder restructur 2023-07-18 20:18:05 +02:00
k3s dump 2023-07-09 23:25:45 +02:00
README.md fix: dump current state 2023-03-20 22:59:54 +01:00
default.nix fix: i18n in US 2023-06-15 02:23:09 +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

my current package channels

nix-channel --list    
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable
nixpkgs https://nixos.org/channels/nixpkgs-unstable