2023-07-18 20:40:57 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
2024-03-02 22:05:30 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
lib',
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib')
|
2023-07-18 20:40:57 +02:00
|
|
|
flip
|
|
|
|
mapAttrs
|
|
|
|
singleton
|
2024-03-02 22:05:30 +01:00
|
|
|
mkForce
|
|
|
|
;
|
2023-07-18 20:40:57 +02:00
|
|
|
|
|
|
|
config' = config;
|
2024-03-02 22:05:30 +01:00
|
|
|
in {
|
2023-07-18 20:40:57 +02:00
|
|
|
flake.nixosConfigurations.gooseberry = inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
|
|
|
|
specialArgs = {
|
|
|
|
config' = config';
|
|
|
|
inputs' = inputs;
|
|
|
|
secret = lib'.loadSecrets inputs.secret;
|
|
|
|
};
|
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
modules =
|
|
|
|
singleton
|
|
|
|
({
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./bootloader.nix
|
|
|
|
./filesystems.nix
|
|
|
|
./users.nix
|
|
|
|
./nixpkgs.nix
|
|
|
|
./networking.nix
|
|
|
|
../../common/remote_access.nix
|
2023-07-18 20:40:57 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
];
|
2023-07-18 20:40:57 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
environment.systemPackages = [pkgs.ipmitool];
|
2023-07-19 01:39:52 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
boot.initrd.systemd.enable = true;
|
2023-07-18 20:40:57 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
});
|
2023-07-18 20:40:57 +02:00
|
|
|
};
|
|
|
|
}
|