Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

adding a new host

nixos

mkdir hosts/<hostname>
nixos-generate-config --show-hardware-config --no-filesystems > hosts/nixos/<hostname>/hardware.nix

then add your host inside hosts/nixos/<hostname>/default.nix like this

{
  lib,
  config,
  self,
  inputs,
  ...
}:
{
  imports = [
    inputs.nixos-hardware.nixosModules.<device>
    ./hardware.nix
    (lib.modules.importApply ./disko.nix { })
  ];

  l = {
    boot.enable = true;
    desktop.enable = true;

    monitors = lib.singleton {
      name = "eDP-1";
      width = 1920;
      height = 1080;
      scale = 1.25;
    };
  };

  stylix.image = inputs.wallpapers.<wallpaper>;

  home-manager.users.da157 = {
    suites = {
      desktop = {
        enable = true;
        hyprland.enable = true;
      };
      dev.enable = true;
      media.enable = true;
    };
  };
}

home manager

TODO