No description
- Nix 99.7%
- Shell 0.3%
| hooks | ||
| hosts | ||
| modules | ||
| nixpkgs/pkgs/development/libraries/bgfx | ||
| scripts | ||
| secrets | ||
| shells | ||
| .sops.yaml | ||
| config-template.nix | ||
| flake.nix | ||
| pre-setup.sh | ||
| README.md | ||
https://nixos-and-flakes.thiscute.world
$ cp config-template.nix config.nix
$ git add -f config.nix
$ sudo nixos-rebuild switch --flake .#system
$ home-manager switch --flake .#home
$ git restore --staged config.nix
git clone https://github.com/set0xc3/nixos-dotfiles ~/.git/nixos-dotfiles
sudo nixos-generate-config --show-hardware-config > /.git/nixos-dotfiles/hosts/{HOST}
nixos-install --flake path:/.git/nixos-dotfiles/hosts/#{HOST}
cd $(nix build nixpkgs#bibata-cursors --print-out-paths --no-link) nix run nixpkgs#eza -- --tree --level 4
using nix-prefetch
$ nix shell nixpkgs#nix-prefetch $ nix-prefetch-url "https://fie.zip"
path is '/nix/store/...' ...
module template
{
lib,
config,
...
}:
with lib; let
cfg = config.module;
in {
options.module = {
enable = mkEnableOption "Enable Module";
};
config = mkIf cfg.enable {
};
}