mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
Compare commits
5 commits
70335149b6
...
f285547d34
Author | SHA1 | Date | |
---|---|---|---|
|
f285547d34 | ||
|
f8b61ea795 | ||
|
6b6d99e195 | ||
|
0822cce8b6 | ||
|
2406a698c6 |
3 changed files with 15 additions and 19 deletions
|
@ -62,19 +62,19 @@ in
|
|||
systemd.services.samba-smbd.enable = lib.mkDefault false;
|
||||
services.samba = {
|
||||
enable = true;
|
||||
enableNmbd = lib.mkDefault false;
|
||||
enableWinbindd = lib.mkDefault false;
|
||||
nmbd.enable = lib.mkDefault false;
|
||||
winbindd.enable = lib.mkDefault false;
|
||||
package = pkgs.samba4Full;
|
||||
securityType = "ads";
|
||||
extraConfig = ''
|
||||
realm = ${lib.toUpper cfg.longname}
|
||||
workgroup = ${lib.toUpper cfg.shortname}
|
||||
client use spnego = yes
|
||||
restrict anonymous = 2
|
||||
server signing = mandatory
|
||||
client signing = mandatory
|
||||
kerberos method = secrets and keytab
|
||||
'';
|
||||
settings.global = {
|
||||
"security" = "ads";
|
||||
"realm" = lib.toUpper cfg.longname;
|
||||
"workgroup" = lib.toUpper cfg.shortname;
|
||||
"client use spnego" = "yes";
|
||||
"restrict anonymous" = 2;
|
||||
"server signing" = "mandatory";
|
||||
"client signing" = "mandatory";
|
||||
"kerberos method" = "secrets and keytab";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
|
||||
security.sudo.extraConfig = "Defaults lecture=never";
|
||||
|
||||
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
|
||||
|
||||
systemd.oomd.enable = false; # using earlyoom
|
||||
|
||||
zramSwap.enable = lib.mkDefault true;
|
||||
|
@ -54,6 +52,7 @@
|
|||
nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
keep-build-log = false
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -27,11 +27,8 @@ in
|
|||
environment.systemPackages = with pkgs; [
|
||||
gnome-tweaks
|
||||
|
||||
# https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/441
|
||||
# gnomeExtensions.appindicator
|
||||
|
||||
(writeShellScriptBin "x-terminal-emulator" ''
|
||||
exec kitty "$@"
|
||||
exec alacritty "$@"
|
||||
'')
|
||||
|
||||
(writeShellScriptBin "red" ''
|
||||
|
@ -54,7 +51,7 @@ in
|
|||
gsettings set org.gnome.desktop.privacy remove-old-trash-files true
|
||||
gsettings set org.gnome.desktop.search-providers disabled "['org.gnome.Epiphany.desktop']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings maximize-vertically "['<Super>w']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings maximize-horizontally "['<Super>q']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings maximize-horizontally "['<Super>e']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Super>Tab']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
|
||||
|
|
Loading…
Reference in a new issue