whatever
This commit is contained in:
parent
be9fb9278e
commit
b8af0e9761
165 changed files with 1815 additions and 1431 deletions
14
hosts/work/docker.nix
Normal file
14
hosts/work/docker.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.docker-compose
|
||||
];
|
||||
|
||||
users.groups.docker.members = config.users.normalUsers;
|
||||
}
|
9
hosts/work/filesystems.nix
Normal file
9
hosts/work/filesystems.nix
Normal 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
32
hosts/work/hardware.nix
Normal 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
13
hosts/work/hosts.nix
Normal 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
22
hosts/work/php.nix
Normal 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
36
hosts/work/plasma.nix
Normal 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
3
hosts/work/system.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
system.stateVersion = "24.11";
|
||||
}
|
11
hosts/work/tools.nix
Normal file
11
hosts/work/tools.nix
Normal 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
14
hosts/work/users.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue