Compare commits
2 commits
2e288c94f9
...
923ca6cd9a
Author | SHA1 | Date | |
---|---|---|---|
923ca6cd9a | |||
2dd7b02fdc |
2 changed files with 20 additions and 9 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
result
|
||||||
|
result-*
|
27
flake.nix
27
flake.nix
|
@ -2,6 +2,7 @@
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
outputs = { self, nixpkgs, ... }: let
|
outputs = { self, nixpkgs, ... }: let
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
|
eachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
||||||
in {
|
in {
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
default = import ./module.nix;
|
default = import ./module.nix;
|
||||||
|
@ -10,15 +11,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
checks = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: {
|
nixosConfigurations = eachSystem (system: lib.nixosSystem {
|
||||||
default = (lib.nixosSystem {
|
inherit system;
|
||||||
inherit system;
|
modules = [ {
|
||||||
modules = [ {
|
system.stateVersion = "24.11";
|
||||||
system.stateVersion = "24.11";
|
fileSystems."/".device = "nodev";
|
||||||
fileSystems."/".device = "nodev";
|
boot.loader.grub.enable = false;
|
||||||
boot.loader.grub.enable = false;
|
services.akkoma.enable = true;
|
||||||
} ] ++ (with self.nixosModules; [ default florp ]);
|
services.akkoma.config.":pleroma".":instance" = {
|
||||||
}).config.system.build.toplevel;
|
name = "test";
|
||||||
|
description = "test";
|
||||||
|
email = "test@test.test";
|
||||||
|
};
|
||||||
|
} ] ++ (with self.nixosModules; [ default florp ]);
|
||||||
|
});
|
||||||
|
|
||||||
|
checks = eachSystem (system: {
|
||||||
|
default = self.nixosConfigurations.${system}.config.system.build.toplevel;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue