Skip to content

aaronchall/config

Repository files navigation

config

See this repo here: https://github.com/aaronchall/config These are notes to myself, but might help others… (Edit this file with emacs!)

usage:

For new machine update system.stateVersion and name the machine a’la x1 (in flake.nix and repo’s x1.nix), give it hardware specific config from auto-generated hardware-configuration.nix and configuration.nix.

switch_config was aliased to something like sudo nixos-rebuild switch --flake ~/config/#x1 where x1 is the name of the flake in flake.nix. Now we have switch which is a function that does nh os switch ~/config and uses the hostname as the flake output.

Be sure to commit new files so flake can see them.

config:

  • flake.nix - 111 LOC - top level entry point, has all computers config’d
    • x1 - my laptop, uses the following nix files:
      • x1.nix - 92 LOC - everything specific to the machine, stuff like
        • contents of old hardware-configuration.nix
        • keyboard media key mappings with actkbd
        • network device references from old configuration.nix
        • other machine specific configuration like systemd job and experimental services
      • console.nix - 350 LOC - everything I would want on any nix console/bash shell
        • networks.nix - example file, actual details are uncommitted
        • colors.nix - 56 LOC - long story, but used in both console and gui
        • prompt.sh - instead of multiline string, allows for syntax highlighting
      • programming.nix - 170 LOC - all programming languages, tools, and environments
      • gui.nix - everything I would want on any gui machine, browsers, editors, etc.
      • home.nix - home-manager, dotfile kind of stuff, some things are just better handled by home-manager anyways.
        • home console - not broken down into these… yet.
        • home gui - not broken down into…
    • idea - my wife’s laptop, a Lenovo Ideapad Pro 5
      • console.nix - same file as above, for reuse!
      • nat.nix - everything specific to the ideapad!
    • server
      • console.nix
      • home.nix console semantic

TODOS:

add server config

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published