Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.59 KB

README.md

File metadata and controls

45 lines (37 loc) · 1.59 KB

nixos-config

$ tree -v --dirsfirst -L 1
.
├── dev           # `nix develop .#package & source interactive.bash`
├── home          # wrap packages for home-level installation
├── hosts         # enable system and home manager modules for a host
├── overlays      # add to or modify nixpkgs
├── pkgs          # define custom packages
├── system        # wrap packages for system-level installation
├── LICENSE       # MIT
├── README.md     # *you are here
├── flake.lock    # pin inputs' versions
└── flake.nix     # config entrypoint

$ nix flake show
.
├───nixosConfigurations
│   ├───athamas: NixOS configuration
│   ├───charon: NixOS configuration
│   └───sisyphus: NixOS configuration
└───packages
    └───x86_64-linux
        └───pixelflasher: package 'pixelflasher-7.6.0.0'

Common Commands

# build and deploy local configuration
sudo nixos-rebuild switch --flake .

# build target configuration locally and push over ssh
nixos-rebuild switch --flake . --target-host user@targetHost --use-remote-sudo

Tip

Copying /nix/store paths during remote deployments requires that the ssh user be in nix.settings.trusted-users.

Upstream Contributions