diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 46 |
1 files changed, 38 insertions, 8 deletions
@@ -27,6 +27,11 @@ # inputs.nixpkgs.follows = "nixpkgs"; # inputs.lix.follows = "lix"; # }; + + unf = { + url = "git+https://git.atagen.co/atagen/unf"; + inputs.nixpkgs.follows = "nixpkgs"; + }; #for device formatting disko = { @@ -67,6 +72,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nix-search-tv = { + url = "github:3timeslazy/nix-search-tv"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + modded-minecraft-servers.url = "github:mkaito/nixos-modded-minecraft-servers"; nix-minecraft.url = "github:Infinidoge/nix-minecraft"; @@ -80,6 +90,7 @@ # url = "github:AstroNvim/AstroVnim/v3.36.0"; # flake = false; # }; + # useful nushell scripts, such as auto_completion nushell-scripts = { @@ -192,18 +203,32 @@ let inherit (self) outputs; lib = nixpkgs.lib // home-manager.lib; - systems = [ "x86_64-linux" "aarch64-linux" ]; - # forAllSystems = f: lib.genAttrs systems (system: f pkgsFor.${system}); - pkgsFor = lib.genAttrs systems (system: import nixpkgs { - inherit system; - config.allowUnfree = true; - }); + # systems = [ "x86_64-linux" "aarch64-linux" ]; + # # forAllSystems = f: lib.genAttrs systems (system: f pkgsFor.${system}); + # pkgsFor = lib.genAttrs systems (system: import nixpkgs { + # inherit system; + # config.allowUnfree = true; + # }); + + # function to use unf to list options from arbitrary module for home-manager + mkOpts = system: module: + inputs.unf.lib.json { + inherit self; + pkgs = nixpkgs.legacyPackages.${system}; + + # not all modules can be evaluated easily. If your module + # does not evaluate, try checking this NüschtOS file: + # https://github.com/NuschtOS/search.nuschtos.de/blob/main/flake.nix + modules = [module]; + }; minimalHomeManagerSettings = [ # From github:MasterofNull/nixos config home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit inputs; }; + home-manager.extraSpecialArgs = { + inherit inputs; + }; } ]; nixIndex = [ @@ -261,7 +286,12 @@ modules = minimalModuleConfig ++ [ ./machines/zenbook # lix-module.nixosModules.default # hyprland.homeManagerModules.default {wayland.windowManager.hyprland.enable = true;} - home-manager.nixosModules.home-manager { home-manager.users.defin = import ./home-manager/tiling-wm.nix; } + home-manager.nixosModules.home-manager { + home-manager.users.defin = import ./home-manager/tiling-wm.nix; + home-manager.extraSpecialArgs = { + diskoOptions = inputs.disko.nixosModules.default; + }; + } ]; }; |
