feat: refactored configs to follow modules pattern
This commit is contained in:
parent
149f4f151f
commit
4eb36ddfc7
29 changed files with 169 additions and 1481 deletions
26
modules/hosts/nixos/installer/configuration.nix
Normal file
26
modules/hosts/nixos/installer/configuration.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{...}: {
|
||||
flake.nixosModules.installer-configuration = {
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")];
|
||||
|
||||
systemd.services.sshd.wantedBy = pkgs.lib.mkForce ["multi-user.target"];
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AaAeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee username@host"
|
||||
];
|
||||
|
||||
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
|
||||
|
||||
networking.hostName = "installer";
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
host.users.leyla = {
|
||||
isPrincipleUser = true;
|
||||
isTerminalUser = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/hosts/nixos/installer/default.nix
Normal file
18
modules/hosts/nixos/installer/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# installer ISO
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
flake.nixosConfigurations.installer = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
config.flake.nixosModules.nixosModules
|
||||
config.flake.nixosModules.installer-configuration
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
syncthingConfiguration = inputs.self.syncthingConfiguration;
|
||||
};
|
||||
};
|
||||
}
|
||||
125
modules/syncthing/default.nix
Normal file
125
modules/syncthing/default.nix
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
{inputs, ...}: {
|
||||
flake.syncthingConfiguration = inputs.nix-syncthing.lib.syncthingConfiguration {
|
||||
modules = [
|
||||
({config, ...}: {
|
||||
folders = {
|
||||
leyla_documents = {
|
||||
id = "hvrj0-9bm1p";
|
||||
};
|
||||
leyla_calendar = {
|
||||
id = "8oatl-1rv6w";
|
||||
};
|
||||
leyla_supernote_notes = {
|
||||
id = "dwbuv-zffnf";
|
||||
};
|
||||
eve_records = {
|
||||
id = "by6at-d4h9n";
|
||||
};
|
||||
share = {
|
||||
id = "73ot0-cxmkx";
|
||||
};
|
||||
};
|
||||
devices = {
|
||||
defiant = {
|
||||
id = "3R6E6Y4-2F7MF2I-IGB4WE6-A3SQSMV-LIBYSAM-2OXHHU2-KJ6CGIV-QNMCPAR";
|
||||
folders = {
|
||||
leyla_documents = {
|
||||
folder = config.folders.leyla_documents;
|
||||
path = "/mnt/sync/leyla/documents";
|
||||
};
|
||||
leyla_calendar = {
|
||||
folder = config.folders.leyla_calendar;
|
||||
path = "/mnt/sync/leyla/calendar";
|
||||
};
|
||||
leyla_supernote_notes = {
|
||||
folder = config.folders.leyla_supernote_notes;
|
||||
path = "/mnt/sync/leyla/notes";
|
||||
};
|
||||
eve_records = {
|
||||
folder = config.folders.eve_records;
|
||||
path = "/mnt/sync/eve/records";
|
||||
};
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
path = "/mnt/sync/default/share";
|
||||
};
|
||||
};
|
||||
};
|
||||
twilight = {
|
||||
id = "UDIYL7V-OAZ2BI3-EJRAWFB-GZYVDWR-JNUYW3F-FFQ35MU-XBTGWEF-QD6K6QN";
|
||||
folders = {
|
||||
leyla_documents = {
|
||||
folder = config.folders.leyla_documents;
|
||||
path = "/mnt/sync/leyla/documents";
|
||||
};
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
path = "/mnt/sync/default/share";
|
||||
};
|
||||
};
|
||||
};
|
||||
horizon = {
|
||||
id = "OGPAEU6-5UR56VL-SP7YC4Y-IMVCRTO-XFD4CYN-Z6T5TZO-PFZNAT6-4MKWPQS";
|
||||
folders = {
|
||||
leyla_documents = {
|
||||
folder = config.folders.leyla_documents;
|
||||
path = "/mnt/sync/leyla/documents";
|
||||
};
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
path = "/mnt/sync/default/share";
|
||||
};
|
||||
};
|
||||
};
|
||||
coven = {
|
||||
id = "QGU7NN6-OMXTWVA-YCZ73S5-2O7ECTS-MUCTN4M-YH6WLEL-U4U577I-7PBNCA5";
|
||||
folders = {
|
||||
leyla_documents = {
|
||||
folder = config.folders.leyla_documents;
|
||||
};
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
};
|
||||
};
|
||||
};
|
||||
ceder = {
|
||||
id = "MGXUJBS-7AENXHB-7YQRNWG-QILKEJD-5462U2E-WAQW4R4-I2TVK5H-SMK6LAA";
|
||||
folders = {
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
};
|
||||
leyla_documents = {
|
||||
folder = config.folders.leyla_documents;
|
||||
};
|
||||
leyla_calendar = {
|
||||
folder = config.folders.leyla_calendar;
|
||||
};
|
||||
leyla_notes = {
|
||||
folder = config.folders.leyla_supernote_notes;
|
||||
};
|
||||
};
|
||||
};
|
||||
emergent = {
|
||||
id = "6MIDMKJ-7IFHXVX-FIR3YTB-KVE75LN-PA6IOTN-I257LWR-MMC4K6C-5H4SHQN";
|
||||
folders = {
|
||||
eve_records = {
|
||||
folder = config.folders.eve_records;
|
||||
};
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
};
|
||||
};
|
||||
};
|
||||
shale = {
|
||||
id = "AOAXEVD-QJ2IVRA-6G44Q7Q-TGUPXU2-FWWKOBH-DPKWC5N-LBAEHWJ-7EQF4AM";
|
||||
folders = {
|
||||
share = {
|
||||
folder = config.folders.share;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue