0xda157’s home-manager and nixos config
![]()
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)
-
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