summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix70
1 files changed, 39 insertions, 31 deletions
diff --git a/flake.nix b/flake.nix
index d553767..4f29a34 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,39 +5,47 @@
inputs.nixpkgs.follows = "/nixpkgs";
};
my-nixpkgs.url = "github:qaristote/my-nixpkgs";
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
- outputs = {
- nixpkgs,
- my-nixpkgs,
- personal-webpage,
- ...
- }: {
- nixosConfigurations = let
- system = "x86_64-linux";
- commonModules = [
- my-nixpkgs.nixosModules.personal
- ({...}: {
- nixpkgs.overlays = [
- (self: _: {personal = {inherit (personal-webpage.packages."${self.system}") webpage;};})
- # TODO the order shouldn't matter, yet this overlay doesn't work
- # if it comes first
- my-nixpkgs.overlays.personal
+ outputs =
+ {
+ nixpkgs,
+ my-nixpkgs,
+ personal-webpage,
+ ...
+ }:
+ {
+ nixosConfigurations =
+ let
+ system = "x86_64-linux";
+ commonModules = [
+ my-nixpkgs.nixosModules.personal
+ (
+ { ... }:
+ {
+ nixpkgs.overlays = [
+ (self: _: { personal = { inherit (personal-webpage.packages."${self.system}") webpage; }; })
+ # TODO the order shouldn't matter, yet this overlay doesn't work
+ # if it comes first
+ my-nixpkgs.overlays.personal
+ ];
+ }
+ )
];
- })
- ];
- in {
- hermes = nixpkgs.lib.nixosSystem {
- inherit system;
- modules =
- commonModules
- ++ [./config ./config/hardware];
- };
- hermes-test = nixpkgs.lib.nixosSystem {
- inherit system;
- modules = commonModules ++ [./tests/configuration.nix];
- };
+ in
+ {
+ hermes = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules ++ [
+ ./config
+ ./config/hardware
+ ];
+ };
+ hermes-test = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules ++ [ ./tests/configuration.nix ];
+ };
+ };
};
- };
}