# 0xda157's home-manager and nixos config ![a screenshot of a hyprland desktop with customized waybar and fastfetch and a background with pink flowers](./media/thumbnail.webp) TRANS RIGHTS ARE HUMAN RIGHTS ## install copy da157 age key[^1] to `~/.config/sops/age/keys.txt`, then run the install script: [^1]: age1rgwwryrljsj05sqrmwm7w7tzas8etkyzeudtmz8zz8x8sgt3mdhs4qu7nc ```bash sudo -i bash <(curl -s https://codeberg.org/da157/nix-config/raw/branch/main/install.sh) ``` ## layout - disko - disk partitioning - home - home manager config - apps - application config (eg librewolf) - desktops - desktop enviroment config (eg hyprland) - shared - programs shared between desktop setups (eg waybar) - shell - cli/tui programs (eg tmux) - suites - enabling/install a group of programs for a use case (eg dev) - homelab - home server nixos modules (eg nextcloud) - hosts - each system by hostname (named after moons of saturn) - dione - x1 carbon gen 6, testing enviroment - enceladus - framework 13, daily driver - janus - office pc, future home server - tethys - librebooted t480, also testing enviroment - titan - amd desktop system - nixos - nixos system config - host - shared host configuration (eg audio) - shared - modules shared between nixos and home manager - prefs - user config stuff not convered by stylix (eg border radius, wallpaper) - stylix - stylix setup ## adding a new nixos host ```bash mkdir hosts/ nixos-generate-config --show-hardware-config --no-filesystems > hosts/nixos//hardware.nix ``` then add your host inside `hosts/nixos//default.nix` like this ```nix { lib, config, self, inputs, ... }: { imports = [ inputs.nixos-hardware.nixosModules. ./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.; home-manager.users.da157 = { suites = { desktop = { enable = true; hyprland.enable = true; }; dev.enable = true; media.enable = true; }; }; } ``` ## licensing the source code of this project is licensed under a modified version of the [MIT](./LICENSE) license. all markdown files are licensed under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0).