mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move user settings to etc
This commit is contained in:
parent
1a3814680b
commit
9ef8a5cac2
4 changed files with 3 additions and 19 deletions
|
@ -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 color-scheme 'prefer-dark'
|
||||||
gsettings set org.gnome.desktop.interface enable-hot-corners false
|
gsettings set org.gnome.desktop.interface enable-hot-corners false
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
|
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
|
||||||
|
|
|
@ -92,7 +92,7 @@ with lib;
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sconfig.user-settings = ''
|
environment.etc."my-settings.sh".text = ''
|
||||||
mkdir -p ~/.config/Code/User
|
mkdir -p ~/.config/Code/User
|
||||||
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
ln -sf /etc/vscode-settings.json ~/.config/Code/User/settings.json
|
||||||
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
ln -sf /etc/vscode-keybindings.json ~/.config/Code/User/keybindings.json
|
||||||
|
|
|
@ -42,7 +42,7 @@ in
|
||||||
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
|
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
|
||||||
[ "boot" "build" "switch" "test" ];
|
[ "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.email "sean.bck@gmail.com"
|
||||||
git config --global user.name "Sean Buckley"
|
git config --global user.name "Sean Buckley"
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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)
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue