No description
  • Nix 99.7%
  • Shell 0.3%
Find a file
2025-03-04 19:58:22 +03:00
hooks backup 2024-05-13 05:44:30 +03:00
hosts backup 2025-03-04 13:28:41 +03:00
modules backup 2025-03-04 19:58:22 +03:00
nixpkgs/pkgs/development/libraries/bgfx backup 2024-09-22 23:14:47 +03:00
scripts backup 2024-09-29 23:28:25 +03:00
secrets steamos/next: backup 2024-08-30 17:24:46 +03:00
shells backup 2025-02-28 09:59:13 +03:00
.sops.yaml home/lab: backup 2024-07-13 01:27:59 +03:00
config-template.nix home/lab: backup 2024-07-13 01:27:59 +03:00
flake.nix backup 2025-01-28 09:24:16 +03:00
pre-setup.sh add: pre-setup.sh 2024-09-19 17:50:16 +03:00
README.md Backup 2024-11-05 01:24:27 +03:00

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 {
  };
}