mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-24 22:58:38 +01:00
chore: Clean up nix code
- Added missing `services` prefix to xserver option - Simplified options in system.nix - Removed unused `optionals` binding
This commit is contained in:
parent
787dda981b
commit
26d01911e4
@ -1,7 +1,7 @@
|
||||
{ nix-config, pkgs, lib, config, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkOption mkEnableOption mkIf singleton optionals;
|
||||
inherit (lib) mkOption mkEnableOption mkIf singleton;
|
||||
inherit (lib.types) nullOr str listOf;
|
||||
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowDevPort noRoot postgres;
|
||||
inherit (builtins) attrValues;
|
||||
@ -44,18 +44,15 @@ in
|
||||
default = "22.11";
|
||||
};
|
||||
|
||||
iHaveLotsOfRam = mkEnableOption "tmpfs on /tmp";
|
||||
|
||||
hostName = mkOption {
|
||||
type = str;
|
||||
default = "nixos";
|
||||
};
|
||||
|
||||
iHaveLotsOfRam = mkEnableOption "tmpfs on /tmp";
|
||||
noRoot = mkEnableOption "disable access to root";
|
||||
|
||||
mullvad = mkEnableOption "mullvad vpn";
|
||||
postgres = mkEnableOption "postgres database for containers";
|
||||
|
||||
allowSRB2Port = mkEnableOption "port for srb2";
|
||||
allowDevPort = mkEnableOption "port for development server";
|
||||
};
|
||||
|
@ -14,7 +14,7 @@ in
|
||||
i18n.inputMethod.enable = mkForce false;
|
||||
services.greetd.enable = mkForce false;
|
||||
|
||||
xserver = {
|
||||
services.xserver = {
|
||||
displayManager.lightdm.enable = false;
|
||||
|
||||
desktopManager.phosh = {
|
||||
|
Loading…
Reference in New Issue
Block a user