diff options
| author | spl3g <spleefer6@yandex.ru> | 2024-04-20 20:24:36 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 14:58:53 +0300 |
| commit | f5970d988c68ae1d2ac56f0a35324cd442a26be7 (patch) | |
| tree | 3c7fa7d524c7337c3b999fd577081a1230690072 /flake.nix | |
| parent | ec0e9896dcc0c88ef49d2b2bf8126498d3c2acec (diff) | |
add modules
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 36 |
1 files changed, 27 insertions, 9 deletions
@@ -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 + ]; + }; + }; }; } |
