summaryrefslogtreecommitdiff
path: root/hosts/kansai/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/kansai/default.nix')
-rw-r--r--hosts/kansai/default.nix49
1 files changed, 39 insertions, 10 deletions
diff --git a/hosts/kansai/default.nix b/hosts/kansai/default.nix
index d4a3ff1..c1be877 100644
--- a/hosts/kansai/default.nix
+++ b/hosts/kansai/default.nix
@@ -1,13 +1,42 @@
-{ self, ... }:
{
- imports = [
- ./hardware-configuration.nix
- "${self}/modules/core"
- "${self}/modules/desktop"
- "${self}/modules/options"
- "${self}/modules/pc"
- ];
+ inputs,
+ outputs,
+ secrets,
+ self,
+ kansaiPkgs,
+ lib,
+ pcModules,
+}:
+{
+ flake.nixosConfigurations.kansai =
+ let
+ pkgs =
+ (kansaiPkgs {
+ nixpkgsAllowUnfree = true;
+ nixpkgsCudaSupport = true;
+ })."x86_64-linux";
+ in
+ lib.nixosSystem {
+ inherit pkgs;
+
+ specialArgs = {
+ inherit
+ inputs
+ outputs
+ secrets
+ self
+ ;
+ };
- networking.hostName = "kansai";
- system.stateVersion = "24.05";
+ modules =
+ with inputs;
+ [
+ home-manager.nixosModule
+ nur.nixosModules.nur
+ chaotic.nixosModules.default
+ ./configuration.nix
+ ./hardware-configuration.nix
+ ]
+ ++ pcModules pkgs.system;
+ };
}