mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 03:50:15 +00:00
refactor arguments to options
also change theme to colorscheme
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{ pkgs, lib, gui, ... }: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
config = lib.mkIf gui.enable {
|
||||
config = lib.mkIf config.gui.enable {
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, gui, ... }: {
|
||||
{ ... }: {
|
||||
|
||||
imports = [
|
||||
./audio.nix
|
||||
@ -7,6 +7,7 @@
|
||||
./monitors.nix
|
||||
./mouse.nix
|
||||
./networking.nix
|
||||
./wifi.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{ pkgs, lib, gui, identity, ... }: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
# Timezone required for Redshift schedule
|
||||
imports = [ ../system/timezone.nix ];
|
||||
|
||||
config = lib.mkIf gui.enable {
|
||||
config = lib.mkIf config.gui.enable {
|
||||
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
@ -23,7 +23,7 @@
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
# Grant user access to external monitors
|
||||
users.users.${identity.user}.extraGroups = [ "i2c" ];
|
||||
users.users.${config.user}.extraGroups = [ "i2c" ];
|
||||
|
||||
services.xserver.displayManager = {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ pkgs, lib, gui, ... }: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
config = lib.mkIf gui.enable {
|
||||
config = lib.mkIf config.gui.enable {
|
||||
|
||||
# Mouse config
|
||||
services.ratbagd.enable = true;
|
||||
|
@ -1,9 +1,5 @@
|
||||
{ ... }: {
|
||||
|
||||
networking.wireless.enable =
|
||||
true; # Enables wireless support via wpa_supplicant.
|
||||
networking.wireless.userControlled.enable = true;
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
|
7
modules/hardware/wifi.nix
Normal file
7
modules/hardware/wifi.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ ... }: {
|
||||
|
||||
networking.wireless.enable =
|
||||
true; # Enables wireless support via wpa_supplicant.
|
||||
networking.wireless.userControlled.enable = true;
|
||||
|
||||
}
|
Reference in New Issue
Block a user