Update inputs
nix flake updateRebuild and switch (this is what you need 99% of the time)
nixos-rebuild switch --flake . --sudo --no-reexecBuild
nixos-rebuild build --flake .Replace every instance of "user". You can currently find it in:
flake.nixmodules/nixos/default.nix
Rename hosts/hostname to something else and change the value of networking.hostName inside it.
In flake.nix Change the word hostname in hostname = mkSystem (import ./hosts/hostname);.
Remember that flakes are built from the git tree, so you need to git add the new directory, otherwise nix cannot find the files.
- Copy
modules/nixos/gaming.nixto e.g.modules/nixos/plasma.nix - Add
./plasma.nixinto theimportslist inmodules/nixos/default.nix - Make a new option for enabling plasma
(
mynixos.gaming.enable->mynixos.plasma.enable) Remember to also change the lib.mkIf value as well! - Change the contents of the
configattrset Search forplasmaandsddmon the NixOS options searchservices.desktopManager.plasma6.enable = true;services.displayManager.sddm.enable = true;etc. - Enable your
mynixos.plasma.enableoption in your host config.
Useful links
Package search https://search.nixos.org/packages?channel=unstable
Option search https://search.nixos.org/options?channel=unstable
Wiki https://wiki.nixos.org/wiki/Main_Page
Option search https://home-manager-options.extranix.com
Library function search https://noogle.dev/