diff options
| author | Fuwn <[email protected]> | 2024-12-11 15:58:04 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-12-11 16:11:45 -0800 |
| commit | 8fc491a1919c152cad9f17c14647c170daf93b9f (patch) | |
| tree | a7b37c845bcce87fda90e55ed88c6c8fc2440428 /flake.nix | |
| parent | lock: tsutsumi (diff) | |
| download | nixos-config-8fc491a1919c152cad9f17c14647c170daf93b9f.tar.xz nixos-config-8fc491a1919c152cad9f17c14647c170daf93b9f.zip | |
host: nara
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 105 |
1 files changed, 53 insertions, 52 deletions
@@ -1,31 +1,16 @@ { - outputs = - { - devenv, - flake-root, - flake-parts, - home-manager, - just-flake, - nixpkgs, - pre-commit-hooks, - self, - ... - }@inputs: + outputs = { devenv, flake-root, flake-parts, home-manager, just-flake, nixpkgs + , pre-commit-hooks, self, ... }@inputs: let lib = nixpkgs.lib // home-manager.lib; - secrets = builtins.fromTOML (builtins.readFile "${self}/secrets/secrets.toml"); + secrets = + builtins.fromTOML (builtins.readFile "${self}/secrets/secrets.toml"); systemsAttributes = lib.genAttrs lib.systems.flakeExposed; kansaiPkgs = import "${self}/lib/kansai-pkgs.nix" { - inherit - systemsAttributes - nixpkgs - self - inputs - ; + inherit systemsAttributes nixpkgs self inputs; }; - in - flake-parts.lib.mkFlake { inherit inputs; } { + in flake-parts.lib.mkFlake { inherit inputs; } { systems = builtins.attrNames (systemsAttributes (system: system)); imports = [ @@ -34,45 +19,27 @@ just-flake.flakeModule (import ./home { - inherit - kansaiPkgs - self - lib - inputs - secrets - ; + inherit kansaiPkgs self lib inputs secrets; inherit (self) outputs; }) (import ./hosts { - inherit - kansaiPkgs - self - lib - inputs - secrets - ; + inherit kansaiPkgs self lib inputs secrets; inherit (self) outputs; }) ]; - perSystem = - { system, config, ... }: - let - pkgs = (kansaiPkgs { })."${system}"; - in - { - imports = - let - parts = "${self}/parts"; - in - [ - "${parts}/just.nix" - (import "${parts}/checks.nix" { inherit pre-commit-hooks system; }) - (import "${parts}/devenv.nix" { inherit config lib pkgs; }) - ]; + perSystem = { system, config, ... }: + let pkgs = (kansaiPkgs { })."${system}"; + in { + imports = let parts = "${self}/parts"; + in [ + "${parts}/just.nix" + (import "${parts}/checks.nix" { inherit pre-commit-hooks system; }) + (import "${parts}/devenv.nix" { inherit config lib pkgs; }) + ]; packages.default = home-manager.defaultPackage."${system}"; formatter = pkgs.nixfmt-rfc-style; @@ -80,8 +47,11 @@ }; inputs = { + determinate.url = + "https://flakehub.com/f/DeterminateSystems/determinate/0.1"; flake-root.url = "github:srid/flake-root"; - flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/=0.1.5.tar.gz"; + flake-schemas.url = + "https://flakehub.com/f/DeterminateSystems/flake-schemas/=0.1.5.tar.gz"; just-flake.url = "github:juspay/just-flake"; nix-filter.url = "github:numtide/nix-filter"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; @@ -207,6 +177,21 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + homebrew-bundle = { + url = "github:homebrew/homebrew-bundle"; + flake = false; + }; + + homebrew-cask = { + url = "github:homebrew/homebrew-cask"; + flake = false; + }; + + homebrew-core = { + url = "github:homebrew/homebrew-core"; + flake = false; + }; + hyprfocus = { url = "github:pyt0xic/hyprfocus"; @@ -249,6 +234,11 @@ }; }; + nikitabobko-homebrew-tap = { + url = "github:nikitabobko/homebrew-tap"; + flake = false; + }; + nix-alien = { url = "github:thiagokokada/nix-alien"; @@ -261,6 +251,11 @@ }; }; + nix-darwin = { + url = "github:LnL7/nix-darwin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-gaming = { url = "github:fufexan/nix-gaming"; @@ -276,6 +271,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nix-homebrew = { + url = "github:zhaofengli-wip/nix-homebrew"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-index-database = { url = "github:nix-community/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; @@ -422,7 +422,8 @@ }; umu = { - url = "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1"; + url = + "git+https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix&submodules=1"; inputs.nixpkgs.follows = "nixpkgs"; }; }; |