feat: matrix cleanup automations, kde plasma

This commit is contained in:
Kat Inskip 2024-06-28 16:51:40 -07:00
parent a07bdbcafb
commit ed4defc62f
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
25 changed files with 521 additions and 100 deletions

31
systems/daiyousei.nix Normal file
View file

@ -0,0 +1,31 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
]
++ (with tree.nixos.profiles; [
server
])
++ (with tree.nixos.hardware; [
oracle_flex
])
++ (with tree.nixos.servers; [
]);
system.stateVersion = "23.11";
};
in {
arch = "aarch64";
type = "NixOS";
modules = [
hostConfig
];
}

View file

@ -142,6 +142,9 @@
serverLocations = {
mediabox = "10.1.1.167";
orb = "orb";
daiyousei = "140.238.156.121";
mei = "150.230.28.111";
mai = "132.145.108.249";
};
in {
deploy.nodes = set.merge [
@ -149,7 +152,7 @@
${name} = {
profiles.system = {
user = "root";
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.${name};
path = inputs.deploy-rs.lib.${host.system}.activate.nixos inputs.self.nixosConfigurations.${name};
};
autoRollback = false;
magicRollback = false;
@ -166,6 +169,7 @@
${name} = {
hostname = serverLocations.${name};
sshUser = "root";
sshOpts = ["-oControlMaster=no" "-oControlPath=/tmp/willneverexist" "-p" "${builtins.toString (builtins.head inputs.self.nixosConfigurations.${name}.config.services.openssh.ports)}"];
};
})
(set.optional (name == "renko" && host.folder == "nixos") {

View file

@ -20,7 +20,7 @@ _: let
secureboot
])
++ (with tree.nixos.environments; [
xfce
kde
]);
config = {
home-manager.users.kat.imports =
@ -29,7 +29,7 @@ _: let
devops
])
++ (with tree.home.environments; [
xfce
kde
]);
fileSystems = {
@ -45,6 +45,30 @@ _: let
boot.extraModprobeConfig = "options snd_hda_intel power_save=0";
programs.ssh.extraConfig = ''
Host daiyousei-build
HostName 140.238.156.121
User root
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
'';
nix.buildMachines = [
{
hostName = "daiyousei-build";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = [ "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}
];
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
services.printing.enable = true;
services.hardware.bolt.enable = true;
@ -54,7 +78,7 @@ _: let
];
boot = {
supportedFilesystems = ["ntfs"];
supportedFilesystems = ["ntfs" "xfs"];
};
networking = {

31
systems/mai.nix Normal file
View file

@ -0,0 +1,31 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
]
++ (with tree.nixos.profiles; [
server
])
++ (with tree.nixos.hardware; [
oracle_micro
])
++ (with tree.nixos.servers; [
]);
system.stateVersion = "23.11";
};
in {
arch = "x86_64";
type = "NixOS";
modules = [
hostConfig
];
}

31
systems/mei.nix Normal file
View file

@ -0,0 +1,31 @@
_: let
hostConfig = {
lib,
tree,
modulesPath,
...
}: let
inherit (lib.modules) mkDefault;
in {
imports =
[
(modulesPath + "/profiles/qemu-guest.nix")
]
++ (with tree.nixos.profiles; [
server
])
++ (with tree.nixos.hardware; [
oracle_micro
])
++ (with tree.nixos.servers; [
]);
system.stateVersion = "23.11";
};
in {
arch = "x86_64";
type = "NixOS";
modules = [
hostConfig
];
}

View file

@ -19,7 +19,6 @@ _: let
postgres
matrix
vaultwarden
grafana-stack
public-directory
weechat
tt-rss