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-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;
|
|
|
|
secret = lib'.loadSecrets;
|
|
|
|
};
|
|
|
|
modules =
|
|
|
|
singleton
|
|
|
|
({
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./xserver.nix
|
|
|
|
../../common/steam.nix
|
|
|
|
./grub.nix
|
|
|
|
./networking.nix
|
|
|
|
./filesystems.nix
|
|
|
|
./hardware.nix
|
|
|
|
./users.nix
|
|
|
|
./nixpkgs.nix
|
|
|
|
../../common/sound.nix
|
|
|
|
];
|
2023-06-11 23:09:59 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
_module.args.nixinate = {
|
|
|
|
host = secret.network.ips.heater or "";
|
|
|
|
sshUser = "main";
|
|
|
|
buildOn = "local";
|
|
|
|
substituteOnTarget = true;
|
|
|
|
hermetic = false;
|
|
|
|
nixOptions = [
|
|
|
|
"--override-input secret path://$HOME/dotfiles/secret"
|
|
|
|
];
|
|
|
|
};
|
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";
|
|
|
|
system.stateVersion = "20.09";
|
|
|
|
});
|
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
}
|