From f5970d988c68ae1d2ac56f0a35324cd442a26be7 Mon Sep 17 00:00:00 2001 From: spl3g Date: Sat, 20 Apr 2024 20:24:36 +0300 Subject: add modules --- flake.nix | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index edd701e..a20d1e3 100644 --- a/flake.nix +++ b/flake.nix @@ -22,14 +22,20 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - nix-colors.url = github:Misterio77/nix-colors; - nh = { url = github:viperML/nh; - inputs.nixpkgs.follows = "nixpkgs"; # override this repo's nixpkgs snapshot + inputs.nixpkgs.follows = "nixpkgs"; }; + nixvim = { + url = "github:nix-community/nixvim"; + # If you are not running an unstable channel of nixpkgs, select the corresponding branch of nixvim. + # url = "github:nix-community/nixvim/nixos-23.05"; + inputs.nixpkgs.follows = "nixpkgs"; + }; niri.url = github:/sodiboo/niri-flake; + + stylix.url = github:danth/stylix; }; outputs = { self @@ -37,9 +43,6 @@ , nixpkgs-small , home-manager , nurpkgs - , hyprland - , nix-colors - , niri , ... }@inputs: let inherit (self) outputs; @@ -74,20 +77,35 @@ # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { ltrr-mini = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs outputs nix-colors; }; + specialArgs = { inherit inputs outputs; }; modules = [ ./nixos/laptop/configuration.nix nurpkgs.nixosModules.nur - niri.nixosModules.niri ]; }; ltrr = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs outputs nix-colors; }; + specialArgs = { inherit inputs outputs; }; modules = [ ./nixos/pc/configuration.nix nurpkgs.nixosModules.nur ]; }; }; + homeConfigurations = { + "jerpo@ltrr-mini" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = { inherit inputs outputs; }; + modules = [ + ./home-manager/laptop.nix + ]; + }; + "jerpo@ltrr" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = { inherit inputs outputs; }; + modules = [ + ./home-manager/pc.nix + ]; + }; + }; }; } -- cgit v1.2.3