refactor: hemar reboot
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -40,36 +40,27 @@
|
||||
rust-overlay,
|
||||
...
|
||||
}@inputs: let
|
||||
flake = ./.;
|
||||
nixpkgs = nixpkgs-25-05;
|
||||
flake = ./.;
|
||||
nixpkgs = nixpkgs-25-05;
|
||||
overlays = [ self.overlays.default ];
|
||||
self-lib = import ./lib { inherit flake self inputs; };
|
||||
in self-lib.forAllSystemsWithPkgs ([(import rust-overlay)] ++ overlays) ({
|
||||
system,
|
||||
pkgs,
|
||||
}: {
|
||||
packages.${system} = import ./package { inherit system pkgs self; };
|
||||
|
||||
legacyPackages.${system} = import nixpkgs { inherit system overlays; };
|
||||
|
||||
devShells.${system} = {
|
||||
c = import ./devshell/c.nix { inherit self system pkgs; };
|
||||
postgres-c = import ./devshell/postgres-c.nix { inherit self system pkgs; };
|
||||
pure-c = import ./devshell/pure-c.nix { inherit self system pkgs; };
|
||||
default = import ./devshell/default.nix { inherit self system pkgs; };
|
||||
rust = import ./devshell/rust.nix { inherit self system pkgs; };
|
||||
haskell = import ./devshell/haskell.nix { inherit self system pkgs; };
|
||||
};
|
||||
packages.${system} = import ./package { inherit system pkgs self; };
|
||||
legacyPackages.${system} = import nixpkgs { inherit system overlays; };
|
||||
devShells.${system} = import ./devshell { inherit self system pkgs; };
|
||||
nixosConfigurations = {
|
||||
"devvm-manual|${system}" = import ./nixos/system/devvm-manual/default.nix
|
||||
{ inherit flake self inputs system; };
|
||||
"devvm-hemar|${system}" = import ./nixos/system/devvm-hemar/default.nix
|
||||
"devvm-hemar|${system}" = import ./nixos/system/devvm-hemar/default.nix
|
||||
{ inherit flake self inputs system; };
|
||||
};
|
||||
}) // {
|
||||
lib = self-lib;
|
||||
overlays.default = import ./overlay { inherit flake self inputs nixpkgs; };
|
||||
nixosModules = import ./nixos/module { inherit flake self inputs nixpkgs; };
|
||||
templates = import ./template { inherit flake self inputs nixpkgs; };
|
||||
overlays.default = import ./overlay { inherit flake self inputs nixpkgs; };
|
||||
nixosModules = import ./nixos/module { inherit flake self inputs nixpkgs; };
|
||||
templates = import ./template { inherit flake self inputs nixpkgs; };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user