fix
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
# https://github.com/NixOS/nixos-hardware
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||
nixos-hardware-2311.url = "github:NixOS/nixos-hardware/ae5c8dcc4d0182d07d75df2dc97112de822cb9d6"; # pre https://github.com/NixOS/nixos-hardware/pull/977
|
||||
|
||||
# https://github.com/tfc/nspawn-nixos
|
||||
nixos-nspawn.url = "github:tfc/nspawn-nixos";
|
||||
@@ -49,9 +50,10 @@
|
||||
# https://github.com/Mic92/sops-nix
|
||||
sops-nix-edge.url = "github:Mic92/sops-nix";
|
||||
sops-nix-edge.inputs.nixpkgs.follows = "nixpkgs-edge";
|
||||
sops-nix-edge.inputs.nixpkgs-stable.follows = "nixpkgs-2311";
|
||||
sops-nix-edge.inputs.nixpkgs-stable.follows = "nixpkgs-2405";
|
||||
sops-nix-2405.url = "github:Mic92/sops-nix";
|
||||
sops-nix-2405.inputs.nixpkgs.follows = "nixpkgs-2405";
|
||||
sops-nix-2405.inputs.nixpkgs-stable.follows = "nixpkgs-2405";
|
||||
sops-nix-2311.url = "github:Mic92/sops-nix";
|
||||
sops-nix-2311.inputs.nixpkgs.follows = "nixpkgs-2311";
|
||||
sops-nix-2311.inputs.nixpkgs-stable.follows = "nixpkgs-2311";
|
||||
@@ -100,6 +102,7 @@
|
||||
outputs = {
|
||||
self,
|
||||
nixos-hardware,
|
||||
nixos-hardware-2311,
|
||||
nixos-nspawn,
|
||||
nixos-generators-2311,
|
||||
...
|
||||
@@ -168,14 +171,15 @@
|
||||
|
||||
imports = let ifExists = p: if builtins.pathExists p then p else {}; in [
|
||||
./base.nix
|
||||
(ifExists "${self}/hosts/${hostname}")
|
||||
"${self}/hosts/${hostname}" # (ifExists "${self}/hosts/${hostname}")
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.home-manager.nixosModule
|
||||
#inputs.nix-index-database.nixosModules.nix-index
|
||||
#inputs.nix-index-database.nixosModules.nix-index # TODO: fix?
|
||||
] ++ modules ++ extra-modules;
|
||||
#++ inputs.flake-programs-sqlite.nixosModules.programs-sqlite; # TODO: make work
|
||||
|
||||
sops.defaultSopsFile = lib.mkIf (builtins.pathExists ./secrets/${hostname}.yaml) ./secrets/${hostname}.yaml;
|
||||
sops.defaultSopsFile = ./secrets/default.yaml;
|
||||
#sops.defaultSopsFile = lib.mkIf (builtins.pathExists ./secrets/${hostname}.yaml) ./secrets/${hostname}.yaml;
|
||||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
sops.age.generateKey = true;
|
||||
@@ -257,13 +261,14 @@
|
||||
mkHosts = mk: let
|
||||
ls = imports: { inherit imports; };
|
||||
hw = nixos-hardware.nixosModules;
|
||||
hw_ = nixos-hardware-2311.nixosModules;
|
||||
#vf = nixos-vf2.nixosModules;
|
||||
amd = ls [ hw.common-pc hw.common-pc-ssd hw.common-cpu-amd ];
|
||||
intel = ls [ hw.common-pc hw.common-pc-ssd hw.common-cpu-intel ./hardware/gpu/intel.nix ];
|
||||
intel-novga = ls [ hw.common-pc hw.common-pc-ssd hw.common-cpu-intel-cpu-only ];
|
||||
cuda = ls [ ./hardware/gpu/cuda.nix hw.common-gpu-nvidia-nonprime ];
|
||||
cuda-prime = ls [ ./hardware/gpu/cuda.nix hw.common-gpu-nvidia ];
|
||||
rocm = ls [ ./hardware/gpu/rocm.nix hw.common-gpu-amd ];
|
||||
rocm = ls [ ./hardware/gpu/rocm.nix hw_.common-gpu-amd ];
|
||||
nspawn = ls [ "${nixos-nspawn}/nspawn-image.nix" { boot.isContainer = true; } ];
|
||||
hidpi = hw.common-hidpi;
|
||||
p1005 = ./hardware/printer/hp-laserjet-p1005.nix;
|
||||
|
||||
Reference in New Issue
Block a user