mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{
|
|
inputs,
|
|
lib',
|
|
config,
|
|
secret,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib')
|
|
flip
|
|
mapAttrs
|
|
singleton
|
|
;
|
|
|
|
config' = config;
|
|
in {
|
|
flake.nixosConfigurations.heater = inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
lib = lib';
|
|
|
|
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
|
|
];
|
|
|
|
_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"
|
|
];
|
|
};
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
system.stateVersion = "20.09";
|
|
});
|
|
};
|
|
}
|