diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-02-03 20:12:31 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-02-03 20:12:31 +0100 |
commit | 157c6b37886f116d4b03004ae553f72a5a5e571c (patch) | |
tree | 50f667e72b870c0feef00e473b7ff3450764f562 /hosts/snorlax/flake.nix | |
parent | 85ef0228f1fafece04af64e770ed590b2d46fffd (diff) |
move around disk conf stuff
Diffstat (limited to 'hosts/snorlax/flake.nix')
-rw-r--r-- | hosts/snorlax/flake.nix | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/hosts/snorlax/flake.nix b/hosts/snorlax/flake.nix deleted file mode 100644 index 49f2c4f..0000000 --- a/hosts/snorlax/flake.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - inputs.disko.url = "github:nix-community/disko"; - inputs.disko.inputs.nixpkgs.follows = "nixpkgs"; - inputs.nixos-facter-modules.url = "github:numtide/nixos-facter-modules"; - - outputs = - { - nixpkgs, - disko, - nixos-facter-modules, - ... - }: - { - # Use this for all other targets - # nixos-anywhere --flake .#generic-nixos-facter --generate-hardware-config nixos-generate-config ./hardware-configuration.nix <hostname> - nixosConfigurations.generic = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - ./hardware-configuration.nix - ]; - }; - - # Slightly experimental: Like generic, but with nixos-facter (https://github.com/numtide/nixos-facter) - # nixos-anywhere --flake .#generic-nixos-facter --generate-hardware-config nixos-facter facter.json <hostname> - nixosConfigurations.generic-nixos-facter = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - nixos-facter-modules.nixosModules.facter - { - config.facter.reportPath = - if builtins.pathExists ./facter.json then - ./facter.json - else - throw "Have you forgotten to run nixos-anywhere with `--generate-hardware-config nixos-facter ./facter.json`?"; - } - ]; - }; - }; -} |