mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 10:06:13 +01:00
66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||
|
#
|
||
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||
|
{ inputs, lib, config, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
flip
|
||
|
mapAttrs
|
||
|
singleton;
|
||
|
|
||
|
config' = config;
|
||
|
in
|
||
|
{
|
||
|
flake.nixosConfigurations.toothpick = inputs.nixpkgs.lib.nixosSystem {
|
||
|
system = "x86_64-linux";
|
||
|
|
||
|
specialArgs = {
|
||
|
config' = config';
|
||
|
inputs' = inputs;
|
||
|
secret =
|
||
|
if builtins.pathExists "${inputs.secret}/default.nix" then
|
||
|
import inputs.secret { inherit lib; }
|
||
|
else
|
||
|
{};
|
||
|
};
|
||
|
|
||
|
modules = singleton
|
||
|
({ pkgs, config, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
./consul.nix
|
||
|
./nomad.nix
|
||
|
./vault-agent.nix
|
||
|
./u2t.nix
|
||
|
./grub.nix
|
||
|
./networking.nix
|
||
|
./nixpkgs.nix
|
||
|
./hardware.nix
|
||
|
./filesystems.nix
|
||
|
./users.nix
|
||
|
../../common/remote_access.nix
|
||
|
|
||
|
config'.flake.nixosModules.hashicorp
|
||
|
];
|
||
|
|
||
|
_module.args.nixinate = {
|
||
|
host = "redalder.org";
|
||
|
sshUser = "main";
|
||
|
buildOn = "local";
|
||
|
substituteOnTarget = true;
|
||
|
hermetic = false;
|
||
|
nixOptions = [
|
||
|
"--override-input secret path://$HOME/dotfiles/secret"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
environment.systemPackages = [
|
||
|
pkgs.git
|
||
|
];
|
||
|
|
||
|
time.timeZone = "Europe/Bratislava";
|
||
|
system.stateVersion = "21.05";
|
||
|
});
|
||
|
};
|
||
|
}
|