summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-19 16:56:48 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-19 17:01:10 +0100
commit25f9b854c0065a3d63278178ef4c8abc99108eba (patch)
tree50eb4c1d8e32d65b49905ebfb8ff8411045e30d6 /flake.nix
parent547870aaafcafe4836557f2fc98768053af26ef2 (diff)
parent7532f335a3ed8a898e2df95f06faa38bad2b8e5d (diff)
Merge branch 'rollback'
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix55
1 files changed, 25 insertions, 30 deletions
diff --git a/flake.nix b/flake.nix
index ac3ee30..3541de1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,40 +2,35 @@
inputs = {
personal-webpage = {
url = "github:qaristote/webpage";
- inputs = {
- nixpkgs.follows = "/nixpkgs";
- flake-utils.follows = "/flake-utils";
- };
+ inputs.nixpkgs.follows = "/nixpkgs";
};
+ my-nixpkgs.url = "git+file:///home/qaristote/code/nix/my-nixpkgs";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
+ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
};
- outputs = { self, nixpkgs, personal-webpage, flake-utils, ... }@attrs:
- flake-utils.lib.eachDefaultSystem (system: {
- overlays.default = final: prev: {
- personal = import ./pkgs { pkgs = final; } // {
- webpage = personal-webpage.defaultPackage."${system}";
- };
+ outputs = { self, nixpkgs, nixpkgs-unstable, my-nixpkgs, personal-webpage, ... }: {
+ nixosConfigurations = let
+ system = "x86_64-linux";
+ commonModules = [
+ my-nixpkgs.nixosModules.personal
+ ({ ... }: {
+ nixpkgs.overlays =
+ [ my-nixpkgs.overlays.personal personal-webpage.overlays.default (_: prev: {
+ inherit (nixpkgs-unstable.legacyPackages."${prev.system}") filtron;
+ })];
+ })
+ ];
+ in {
+ hermes = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules
+ ++ [ ./config ./config/hardware-configuration.nix ];
};
- }) // {
- nixosModules.default = import ./modules;
- nixosConfigurations = let
- system = "x86_64-linux";
- specialArgs = attrs;
- commonModules = [
- self.nixosModules.default
- ({ ... }: {
- nixpkgs.overlays = [ self.overlays."${system}".default ];
- })
- ];
- in {
- hermes = nixpkgs.lib.nixosSystem {
- inherit system specialArgs;
- modules = commonModules ++ [ ./config ./hardware-configuration.nix ];
- };
- hermes-test = nixpkgs.lib.nixosSystem {
- inherit system specialArgs;
- modules = commonModules ++ [ ./tests/configuration.nix ];
- };
+ hermes-test = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules ++ [ ./tests/configuration.nix ];
};
};
+ };
}