1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-11 22:49:04 +02:00
parent be9fb9278e
commit b8af0e9761
No known key found for this signature in database
165 changed files with 1815 additions and 1431 deletions

14
hosts/work/docker.nix Normal file
View file

@ -0,0 +1,14 @@
{
config,
pkgs,
...
}:
{
virtualisation.docker.enable = true;
environment.systemPackages = [
pkgs.docker-compose
];
users.groups.docker.members = config.users.normalUsers;
}

View file

@ -0,0 +1,9 @@
{
boot.initrd.luks.devices.main.device = "/dev/disk/by-label/cryptmain";
fileSystems."/" = {
fsType = "ext4";
device = "/dev/mapper/main";
options = [ "noatime" ];
};
}

32
hosts/work/hardware.nix Normal file
View file

@ -0,0 +1,32 @@
{
inputs,
modulesPath,
...
}:
{
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-amd
inputs.hardware.nixosModules.common-pc-laptop-ssd
inputs.hardware.nixosModules.lenovo-thinkpad
];
nixpkgs.hostPlatform = "x86_64-linux";
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
}

13
hosts/work/hosts.nix Normal file
View file

@ -0,0 +1,13 @@
{
networking.hosts = {
"127.0.0.1" = [
"agan.local"
"es.agan.local"
"fr.agan.local"
"de.agan.local"
"it.agan.local"
"de.rent.agan.local"
"nl.agan.local"
];
};
}

22
hosts/work/php.nix Normal file
View file

@ -0,0 +1,22 @@
{
config,
inputs,
pkgs,
...
}:
{
imports = [
inputs.myphps.nixosModules.default
];
services.myphps = {
enable = true;
prefix = "/var/lib/phps";
};
environment.systemPackages = [
pkgs.jetbrains.phpstorm
config.services.myphps.phps.php
inputs.myphps.packages.${pkgs.system}.symfony-cli
];
}

36
hosts/work/plasma.nix Normal file
View file

@ -0,0 +1,36 @@
{
lib,
pkgs,
...
}:
{
services = {
desktopManager = {
cosmic.enable = lib.mkForce false;
plasma6.enable = true;
};
displayManager = {
cosmic-greeter.enable = lib.mkForce false;
sddm = {
enable = true;
wayland.enable = true;
};
};
};
environment.systemPackages = [
pkgs.kdePackages.sddm-kcm
pkgs.kdePackages.discover
pkgs.kdePackages.kate
];
programs = {
kdeconnect.enable = true;
partition-manager.enable = true;
};
xdg.portal = {
xdgOpenUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}

3
hosts/work/system.nix Normal file
View file

@ -0,0 +1,3 @@
{
system.stateVersion = "24.11";
}

11
hosts/work/tools.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.gnumake
pkgs.unzip
pkgs.pv
pkgs.jq
pkgs.mariadb
pkgs.openssl
];
}

14
hosts/work/users.nix Normal file
View file

@ -0,0 +1,14 @@
{
config,
lib,
...
}:
let
inherit (config.users) mainUser;
in
{
users = {
mainUser = lib.mkForce "lukas";
users.${mainUser}.description = lib.mkForce "Lukas Wurzinger";
};
}