From feefcfc89b00d4955dbb3314c20be035f3db206f Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 29 Jul 2023 20:53:14 +0300 Subject: disko for laptop, wip rewrite --- flake.nix | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 9c5352a..c5f559c 100644 --- a/flake.nix +++ b/flake.nix @@ -18,39 +18,24 @@ url = "github:wamserma/flake-programs-sqlite"; inputs.nixpkgs.follows = "nixpkgs"; }; - # hyprland = { - # url = "github:hyprwm/Hyprland"; - # inputs.nixpkgs.follows = "nixpkgs"; - # }; viper-nix-common = { url = "github:viperML/nix-common"; inputs.nixpkgs-lib.follows = "nixpkgs"; }; + disko = { + url = "github:nix-community/disko"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = inputs @ {self, ...}: let - mkSystem_ = pkgs: system: h: modules: - pkgs.lib.nixosSystem { - system = system; - modules = [./hosts/${h}/cfg.nix] ++ modules; - specialArgs = {inherit inputs;}; - }; - mkSystem = pkgs: system: h: (mkSystem_ pkgs system h [ - inputs.agenix.nixosModules.age - inputs.impermanence.nixosModules.impermanence - inputs.home-manager.nixosModules."home-manager" - ]); - in { + outputs = inputs @ {self, ...}: { apps = inputs.nixinate.nixinate.x86_64-linux self; - nixosConfigurations = { - laptop = mkSystem inputs.nixpkgs "x86_64-linux" "laptop"; - # pc = mkSystem inputs.nixpkgs "x86_64-linux" "pc"; - vm = mkSystem inputs.nixpkgs "x86_64-linux" "vm"; - vps = mkSystem inputs.nixpkgs "x86_64-linux" "vps"; - }; - formatter = { x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra; }; + imports = [ + ./profiles + ]; + nixosConfigurations = import ./hosts inputs; }; } -- cgit 1.4.1