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

0xda157’s home-manager and nixos config

a screenshot of a hyprland desktop with customized waybar and fastfetch and a background with pink flowers

vm demo

nix run https://codeberg.org/da157/nix-config/archive/mistress.tar.gz#vm

licensing

the source code of this project is licensed under a modified version of the MIT license. all markdown files are licensed under CC-BY-4.0.

installing

copy da157 age key1 to ~/.config/sops/age/keys.txt, then run the install script:

sudo -i
bash <(curl -s https://codeberg.org/da157/nix-config/raw/branch/main/install.sh)

  1. age1rgwwryrljsj05sqrmwm7w7tzas8etkyzeudtmz8zz8x8sgt3mdhs4qu7nc

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

todo

programs