de-pluralized systems -> system
This was not being used consistently.
This commit is contained in:
parent
190f561fd6
commit
4e9b865e33
|
@ -34,7 +34,7 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
this.systems = {
|
this.system = {
|
||||||
zfs.enable = true;
|
zfs.enable = true;
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
imports = [ ./graphical.nix ];
|
imports = [ ./graphical.nix ];
|
||||||
|
this.system.boot.enable = true;
|
||||||
this.systems.boot.enable = true;
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
users.users.james.extraGroups = [ "networkmanager" ];
|
users.users.james.extraGroups = [ "networkmanager" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let cfg = config.this.systems.boot;
|
let cfg = config.this.system.boot;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options.this.systems.boot.enable = mkOption {
|
options.this.system.boot.enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
description = "Is there a physical power button?";
|
description = "Is there a physical power button?";
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.systems.displaymanager;
|
cfg = config.system.displaymanager;
|
||||||
graphical = config.this.graphical;
|
graphical = config.this.graphical;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options = {
|
options = {
|
||||||
systems.displaymanager.enable = mkOption {
|
system.displaymanager.enable = mkOption {
|
||||||
default = graphical.enable;
|
default = graphical.enable;
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.systems.flatpak;
|
cfg = config.system.flatpak;
|
||||||
graphical = config.this.graphical;
|
graphical = config.this.graphical;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options = {
|
options = {
|
||||||
systems.flatpak.enable = mkOption {
|
system.flatpak.enable = mkOption {
|
||||||
default = graphical.enable;
|
default = graphical.enable;
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.this.systems.yubikey;
|
cfg = config.this.system.yubikey;
|
||||||
graphical = config.this.graphical;
|
graphical = config.this.graphical;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options.this.systems.yubikey.enable = mkEnableOption "Yubikey";
|
options.this.system.yubikey.enable = mkEnableOption "Yubikey";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.udev.packages = with pkgs; [ yubikey-personalization ];
|
services.udev.packages = with pkgs; [ yubikey-personalization ];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let cfg = config.this.systems.zfs;
|
let cfg = config.this.system.zfs;
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options.this.systems.zfs.enable = mkEnableOption "zfs";
|
options.this.system.zfs.enable = mkEnableOption "zfs";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
boot = {
|
boot = {
|
||||||
|
|
Reference in New Issue
Block a user