From 7bb772ebc8de3f7d63e8843c11d5bae13d0d8a76 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Wed, 31 Jan 2024 19:21:33 +0530 Subject: [PATCH] Splits system config into separate file --- configuration.nix | 44 +------------------------------------------- system.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 43 deletions(-) create mode 100644 system.nix diff --git a/configuration.nix b/configuration.nix index ad47511..839d5e7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,46 +1,4 @@ { pkgs, inputs, ... }: { - imports = [./nix.nix]; - security.pam.enableSudoTouchIdAuth = true; - system = { - defaults = { - dock = { - appswitcher-all-displays = false; - autohide = true; - magnification = true; - mru-spaces = false; - orientation = "bottom"; - wvous-bl-corner = 13; - wvous-br-corner = 14; - wvous-tl-corner = 2; - wvous-tr-corner = 3; - }; - finder = { - AppleShowAllExtensions = true; - FXPreferredViewStyle = "Nlsv"; - }; - NSGlobalDomain = { - AppleEnableMouseSwipeNavigateWithScrolls = true; - AppleEnableSwipeNavigateWithScrolls = true; - AppleICUForce24HourTime = true; - AppleInterfaceStyle = "Dark"; - AppleInterfaceStyleSwitchesAutomatically = false; - NSAutomaticCapitalizationEnabled = false; - NSAutomaticDashSubstitutionEnabled = true; - NSAutomaticSpellingCorrectionEnabled = false; - NSAutomaticPeriodSubstitutionEnabled = false; - NSAutomaticQuoteSubstitutionEnabled = true; - _HIHideMenuBar = true; - }; - trackpad = { - Clicking = true; - TrackpadRightClick = true; - }; - }; - keyboard = { - enableKeyMapping = true; - remapCapsLockToControl = true; - }; - stateVersion = 4; - }; + imports = [./nix.nix ./system.nix]; } diff --git a/system.nix b/system.nix new file mode 100644 index 0000000..bcb9d99 --- /dev/null +++ b/system.nix @@ -0,0 +1,45 @@ +{ pkgs, inputs, ... }: +{ + security.pam.enableSudoTouchIdAuth = true; + system = { + defaults = { + dock = { + appswitcher-all-displays = false; + autohide = true; + magnification = true; + mru-spaces = false; + orientation = "bottom"; + wvous-bl-corner = 13; + wvous-br-corner = 14; + wvous-tl-corner = 2; + wvous-tr-corner = 3; + }; + finder = { + AppleShowAllExtensions = true; + FXPreferredViewStyle = "Nlsv"; + }; + NSGlobalDomain = { + AppleEnableMouseSwipeNavigateWithScrolls = true; + AppleEnableSwipeNavigateWithScrolls = true; + AppleICUForce24HourTime = true; + AppleInterfaceStyle = "Dark"; + AppleInterfaceStyleSwitchesAutomatically = false; + NSAutomaticCapitalizationEnabled = false; + NSAutomaticDashSubstitutionEnabled = true; + NSAutomaticSpellingCorrectionEnabled = false; + NSAutomaticPeriodSubstitutionEnabled = false; + NSAutomaticQuoteSubstitutionEnabled = true; + _HIHideMenuBar = true; + }; + trackpad = { + Clicking = true; + TrackpadRightClick = true; + }; + }; + keyboard = { + enableKeyMapping = true; + remapCapsLockToControl = true; + }; + stateVersion = 4; + }; +}