mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-11 17:31:58 +01:00
56 lines
1,006 B
Nix
56 lines
1,006 B
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
|
||
|
mkForce
|
||
|
;
|
||
|
|
||
|
config' = config;
|
||
|
in {
|
||
|
flake.nixosConfigurations.inkbook = inputs.nixpkgs.lib.nixosSystem {
|
||
|
system = "armv7l-linux";
|
||
|
|
||
|
specialArgs = {
|
||
|
config' = config';
|
||
|
inputs' = inputs;
|
||
|
secret = lib'.loadSecrets inputs.secret;
|
||
|
};
|
||
|
|
||
|
modules =
|
||
|
singleton
|
||
|
({
|
||
|
pkgs,
|
||
|
config,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
./bootloader.nix
|
||
|
./filesystems.nix
|
||
|
./users.nix
|
||
|
./nixpkgs.nix
|
||
|
./networking.nix
|
||
|
../../common/remote_access.nix
|
||
|
|
||
|
inputs.disko.nixosModules.disko
|
||
|
];
|
||
|
|
||
|
environment.systemPackages = [];
|
||
|
|
||
|
boot.initrd.systemd.enable = true;
|
||
|
|
||
|
time.timeZone = "Europe/Amsterdam";
|
||
|
system.stateVersion = "23.05";
|
||
|
});
|
||
|
};
|
||
|
}
|