add import tree
This commit is contained in:
parent
ba7c3392b9
commit
20de142350
24 changed files with 77 additions and 256 deletions
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./application/steam.nix
|
||||
./boot/default.nix
|
||||
./editor/nano/default.nix
|
||||
./editor/nvim/default.nix
|
||||
./hardware/audio/default.nix
|
||||
./home-manager
|
||||
./services
|
||||
./system/networking
|
||||
./system/security/boot
|
||||
./system/security/sops
|
||||
./system/security/sudo
|
||||
];
|
||||
}
|
||||
|
|
@ -8,13 +8,6 @@
|
|||
|
||||
cfg = config.sneeuwvlok.desktop;
|
||||
in {
|
||||
imports = [
|
||||
./cosmic
|
||||
./gamescope
|
||||
./gnome
|
||||
./plasma
|
||||
];
|
||||
|
||||
options.sneeuwvlok.desktop = {
|
||||
use = mkOption {
|
||||
type = nullOr (enum ["plasma" "gamescope" "gnome" "cosmic"]);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./nano
|
||||
./nvim
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./audio
|
||||
./bluetooth
|
||||
./gpu
|
||||
];
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./amd
|
||||
./nvidia
|
||||
];
|
||||
}
|
||||
|
|
@ -6,11 +6,11 @@
|
|||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.sneeuwvlok.hardware.has.gpu.nvidia;
|
||||
cfg = config.sneeuwvlok.hardware.has.gpu;
|
||||
in {
|
||||
options.sneeuwvlok.hardware.has.gpu.nvidia = mkEnableOption "Enable NVidia gpu configuration";
|
||||
|
||||
config = mkIf cfg {
|
||||
config = mkIf cfg.nvidia {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware = {
|
||||
|
|
|
|||
|
|
@ -1,52 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.sneeuwvlok.hardware.has.gpu;
|
||||
in {
|
||||
options.sneeuwvlok.hardware.has.gpu.nvidia = mkEnableOption "Enable NVidia gpu configuration";
|
||||
|
||||
config = mkIf cfg.nvidia {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
finegrained = false;
|
||||
};
|
||||
|
||||
# package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
|
||||
|
||||
# package = let
|
||||
# rcu_patch = pkgs.fetchpatch {
|
||||
# url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
||||
# hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
||||
# };
|
||||
# in config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||
# version = "550.40.07";
|
||||
# sha256_64bit = "sha256-KYk2xye37v7ZW7h+uNJM/u8fNf7KyGTZjiaU03dJpK0=";
|
||||
# sha256_aarch64 = "sha256-AV7KgRXYaQGBFl7zuRcfnTGr8rS5n13nGUIe3mJTXb4=";
|
||||
# openSha256 = "sha256-mRUTEWVsbjq+psVe+kAT6MjyZuLkG2yRDxCMvDJRL1I=";
|
||||
# settingsSha256 = "sha256-c30AQa4g4a1EHmaEu1yc05oqY01y+IusbBuq+P6rMCs=";
|
||||
# persistencedSha256 = "sha256-11tLSY8uUIl4X/roNnxf5yS2PQvHvoNjnd2CB67e870=";
|
||||
|
||||
# patches = [ rcu_patch ];
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
cfg = config.sneeuwvlok.hardware.keyboard.voyager;
|
||||
in {
|
||||
options.sneeuwvlok.hardware.keyboard.voyager = {
|
||||
enble = mkEnableOption "Enable tools for ZSA Voyager";
|
||||
enable = mkEnableOption "Enable tools for ZSA Voyager";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./authelia
|
||||
./himmelblau
|
||||
./zitadel
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./borg
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./matrix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./authentication
|
||||
./backup
|
||||
./communication
|
||||
./development
|
||||
./games
|
||||
./media
|
||||
./networking
|
||||
./observability
|
||||
./persistance
|
||||
./security
|
||||
./virtualisation
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./forgejo
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./minecraft
|
||||
./palworld
|
||||
./openrct.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -9,15 +9,6 @@
|
|||
|
||||
cfg = config.sneeuwvlok.services.media;
|
||||
in {
|
||||
imports = [
|
||||
./glance
|
||||
./jellyfin
|
||||
./mydia
|
||||
./nextcloud
|
||||
./nfs
|
||||
./servarr
|
||||
];
|
||||
|
||||
options.sneeuwvlok.services.media = {
|
||||
enable = mkEnableOption "Enable media services";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./caddy
|
||||
./ssh
|
||||
./wireguard
|
||||
];
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./grafana
|
||||
./loki
|
||||
./prometheus
|
||||
./promtail
|
||||
./uptime-kuma
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./postgesql
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./vaultwarden
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./podman
|
||||
];
|
||||
}
|
||||
|
|
@ -1,27 +1,25 @@
|
|||
{...}: {
|
||||
flake.modules.nixos.sneeuwvlok.system.security = {
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.sneeuwvlok.system.security;
|
||||
in {
|
||||
options.sneeuwvlok.system.security = {};
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.sneeuwvlok.system.security;
|
||||
in {
|
||||
options.sneeuwvlok.system.security = {};
|
||||
|
||||
config = {
|
||||
security = {
|
||||
acme.acceptTerms = true;
|
||||
polkit.enable = true;
|
||||
config = {
|
||||
security = {
|
||||
acme.acceptTerms = true;
|
||||
polkit.enable = true;
|
||||
|
||||
pam = {
|
||||
u2f = {
|
||||
enable = true;
|
||||
settings.cue = true;
|
||||
};
|
||||
pam = {
|
||||
u2f = {
|
||||
enable = true;
|
||||
settings.cue = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
};
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue