refactor: consistence
This commit is contained in:
68
flake.nix
68
flake.nix
@@ -8,6 +8,30 @@
|
||||
nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
};
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim/nixos-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
impermanence = {
|
||||
url = "github:nix-community/impermanence";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs-25-05";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
@@ -20,31 +44,29 @@
|
||||
nixpkgs = nixpkgs-25-05;
|
||||
overlays = [ self.overlays.default ];
|
||||
self-lib = import ./lib { inherit flake self inputs nixpkgs; };
|
||||
in
|
||||
self-lib.forAllSystemsWithPkgs [(import rust-overlay)] ({
|
||||
system,
|
||||
pkgs,
|
||||
}: {
|
||||
packages.${system} = import ./package { inherit system pkgs self; };
|
||||
in self-lib.forAllSystemsWithPkgs [(import rust-overlay)] ({
|
||||
system,
|
||||
pkgs,
|
||||
}: {
|
||||
packages.${system} = import ./package { inherit system pkgs self; };
|
||||
|
||||
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; };
|
||||
};
|
||||
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 { inherit flake self inputs system; };
|
||||
};
|
||||
}) //
|
||||
{
|
||||
legacyPackages = self.lib.forAllSystems (system: import nixpkgs {
|
||||
inherit system overlays;
|
||||
});
|
||||
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; };
|
||||
};
|
||||
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
|
||||
{ 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; };
|
||||
|
||||
Reference in New Issue
Block a user