Rebase to flake parts #3

This commit is contained in:
2026-05-01 17:19:42 -03:00
parent 32df2c3573
commit 2c576715de
6 changed files with 83 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
{ self, inputs, ... }: {
flake.nixosConfigurations."14900k" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit self inputs;
host = "14900k";
system = "x86_64-linux";
};
modules = [
self.nixosModules."14900kConfiguration"
];
};
}
+22
View File
@@ -0,0 +1,22 @@
{ self, ... }: {
#TODO[epic=Moderate] Move this somewhere else, would prefer not relying on this module
flake.nixosModules."client-services" = { ... }: {
imports = [ self.nixosModules.systemBluetooth ];
# Lab-ish SSH defaults on clients — tighten for anything exposed.
services.openssh = {
enable = true;
settings = {
KbdInteractiveAuthentication = false;
PasswordAuthentication = true;
PermitRootLogin = "yes"; # consider tightening later
UseDns = false;
};
};
# Printing, polkit, udisks.
services.printing.enable = true;
security.polkit.enable = true;
services.udisks2.enable = true;
};
}
+13
View File
@@ -0,0 +1,13 @@
{ self, inputs, ... }: {
flake.nixosConfigurations.nix-server = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit self inputs;
host = "nix-server";
system = "x86_64-linux";
};
modules = [
self.nixosModules.nix-serverConfiguration
];
};
}
+1 -1
View File
@@ -6,7 +6,7 @@
imports = [
self.nixosModules.t2mbpHardware
self.nixosModules.t2linux
inputs.t2fanrd.nixosModules.t2fanrd
inputs.t2fanrd.nixosModules.t2fanrd #TODO[epic=Moderate] Convert to flake parts module
inputs.home-manager.nixosModules.home-manager
inputs.sops-nix.nixosModules.sops
+14
View File
@@ -0,0 +1,14 @@
{ self, inputs, ... }: {
flake.nixosConfigurations.t2mbp = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit self inputs;
host = "t2mbp";
system = "x86_64-linux";
};
modules = [
self.nixosModules.t2mbpConfiguration
];
};
}
+19
View File
@@ -0,0 +1,19 @@
{ self, inputs, ... }: {
flake.nixosConfigurations.uConsole = inputs.nixos-raspberrypi.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs // {
inherit self;
inputs = inputs;
host = "uConsole";
system = "aarch64-linux";
};
trustCaches = false;
modules = [
inputs.nixos-raspberrypi.nixosModules.raspberry-pi-5.base
inputs.oom-hardware.nixosModules.uc.kernel
inputs.oom-hardware.nixosModules.uc.configtxt
inputs.oom-hardware.nixosModules.uc.base-cm5
self.nixosModules.uConsoleConfiguration
];
};
}