Mostly security changes, add nouveau as a boot option, simplify settings and prepare for home-manager options

This commit is contained in:
Jimbo 2024-11-29 01:49:18 -05:00
parent 6021f46c20
commit 137a9ab6d9
58 changed files with 281 additions and 269 deletions

View file

@ -1,4 +0,0 @@
{ ... }:
{
services.btrfs.autoScrub.enable = true;
}

View file

@ -1,12 +1,12 @@
{ lib, ... }:
{
imports = [
./btrfs
./fstrim
];
boot.supportedFilesystems = {
ntfs = true;
zfs = lib.mkForce false;
};
services = {
btrfs.autoScrub.enable = true;
fstrim.enable = true;
};
}

View file

@ -1,4 +0,0 @@
{ ... }:
{
services.fstrim.enable = true;
}

View file

@ -1,4 +1,5 @@
{ ... }:
{
system.etc.overlay.mutable = false;
boot.tmp.cleanOnBoot = true;
}

View file

@ -1,7 +1,7 @@
{ ... }:
{
imports = [
./pdp
./oculus
./pdp
];
}

View file

@ -1,11 +1,9 @@
{ lib, pkgs, config, ... }:
{
options.system.video.nouveau = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the open-source Nouveau driver";
};
options.system.video.nouveau.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the open-source Nouveau driver";
};
config = lib.mkIf config.system.video.nouveau.enable {

View file

@ -1,11 +1,9 @@
{ lib, pkgs, config, ... }:
{
options.system.video.nvidia = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the proprietary Nvidia stack";
};
options.system.video.nvidia.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the proprietary Nvidia stack";
};
config = lib.mkIf config.system.video.nvidia.enable {

View file

@ -1,17 +1,15 @@
{ lib, ... }:
with lib; {
options = {
system = {
desktop.enable = mkOption {
type = types.bool;
default = true;
description = "Enable desktop apps and services";
};
server.enable = mkOption {
type = types.bool;
default = false;
description = "Enable server services";
};
options.system = {
desktop.enable = mkOption {
type = types.bool;
default = true;
description = "Enable desktop apps and services";
};
server.enable = mkOption {
type = types.bool;
default = false;
description = "Enable server services";
};
};
}

View file

@ -1,7 +0,0 @@
{ config, ... }:
{
programs.appimage = {
enable = config.system.desktop.enable;
binfmt = config.system.desktop.enable;
};
}

View file

@ -1,7 +1,6 @@
{ ... }:
{
imports = [
./appimage
./backlights
./dconf
./gaming

View file

@ -9,6 +9,7 @@
PrintLastLog = "no";
PasswordAuthentication = false;
UsePAM = false;
X11Forwarding = false;
};
};