2023-06-11 23:09:59 +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,
|
|
|
|
secret,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib')
|
2023-06-11 23:09:59 +02:00
|
|
|
flip
|
|
|
|
mapAttrs
|
2024-03-30 14:52:58 +01:00
|
|
|
loadSecrets
|
2024-03-02 22:05:30 +01:00
|
|
|
singleton
|
|
|
|
;
|
2023-06-11 23:09:59 +02:00
|
|
|
|
|
|
|
config' = config;
|
2024-03-02 22:05:30 +01:00
|
|
|
in {
|
|
|
|
flake.nixosConfigurations.heater = inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
lib = lib';
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
specialArgs = {
|
|
|
|
config' = config';
|
|
|
|
inputs' = inputs;
|
2024-03-30 14:52:58 +01:00
|
|
|
secret = loadSecrets inputs.secret;
|
2024-03-02 22:05:30 +01:00
|
|
|
};
|
|
|
|
modules =
|
|
|
|
singleton
|
|
|
|
({
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./grub.nix
|
|
|
|
./networking.nix
|
|
|
|
./filesystems.nix
|
|
|
|
./hardware.nix
|
|
|
|
./users.nix
|
|
|
|
./nixpkgs.nix
|
2024-03-30 14:52:58 +01:00
|
|
|
./impermenance.nix
|
|
|
|
../../common/remote_access.nix
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-03-30 14:52:58 +01:00
|
|
|
inputs.notnft.nixosModules.default
|
|
|
|
inputs.self.nixosModules.notnft
|
|
|
|
inputs.impermenance.nixosModules.impermanence
|
|
|
|
];
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
services.fwupd.enable = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
time.timeZone = "Europe/Amsterdam";
|
2024-03-30 14:52:58 +01:00
|
|
|
system.stateVersion = "23.11";
|
2024-03-02 22:05:30 +01:00
|
|
|
});
|
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
}
|