move user settings to etc

This commit is contained in:
Sean Buckley 2022-12-06 01:43:00 -05:00
parent 1a3814680b
commit 9ef8a5cac2
4 changed files with 3 additions and 19 deletions

View file

@ -40,7 +40,7 @@ in
'')
];
sconfig.user-settings = ''
environment.etc."my-settings.sh".text = ''
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
gsettings set org.gnome.desktop.interface enable-hot-corners false
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'

View file

@ -92,7 +92,7 @@ with lib;
];
sconfig.user-settings = ''
environment.etc."my-settings.sh".text = ''
mkdir -p ~/.config/Code/User
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json

View file

@ -42,7 +42,7 @@ in
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
[ "boot" "build" "switch" "test" ];
sconfig.user-settings = ''
environment.etc."my-settings.sh".text = ''
git config --global user.email "sean.bck@gmail.com"
git config --global user.name "Sean Buckley"
'';

View file

@ -1,16 +0,0 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.user-settings;
in
{
options.sconfig.user-settings = lib.mkOption {
type = lib.types.nullOr lib.types.lines;
default = null;
};
config = lib.mkIf (cfg != null) {
environment.systemPackages = [
(pkgs.writeShellScriptBin "my-settings" cfg)
];
};
}