Compare commits

..

No commits in common. "f285547d344409924eace8f5be1d03df08a3501c" and "70335149b62d7ab2b10390eab17426a6139cf605" have entirely different histories.

3 changed files with 19 additions and 15 deletions

View file

@ -62,19 +62,19 @@ in
systemd.services.samba-smbd.enable = lib.mkDefault false; systemd.services.samba-smbd.enable = lib.mkDefault false;
services.samba = { services.samba = {
enable = true; enable = true;
nmbd.enable = lib.mkDefault false; enableNmbd = lib.mkDefault false;
winbindd.enable = lib.mkDefault false; enableWinbindd = lib.mkDefault false;
package = pkgs.samba4Full; package = pkgs.samba4Full;
settings.global = { securityType = "ads";
"security" = "ads"; extraConfig = ''
"realm" = lib.toUpper cfg.longname; realm = ${lib.toUpper cfg.longname}
"workgroup" = lib.toUpper cfg.shortname; workgroup = ${lib.toUpper cfg.shortname}
"client use spnego" = "yes"; client use spnego = yes
"restrict anonymous" = 2; restrict anonymous = 2
"server signing" = "mandatory"; server signing = mandatory
"client signing" = "mandatory"; client signing = mandatory
"kerberos method" = "secrets and keytab"; kerberos method = secrets and keytab
}; '';
}; };
}; };
} }

View file

@ -40,6 +40,8 @@
security.sudo.extraConfig = "Defaults lecture=never"; security.sudo.extraConfig = "Defaults lecture=never";
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
systemd.oomd.enable = false; # using earlyoom systemd.oomd.enable = false; # using earlyoom
zramSwap.enable = lib.mkDefault true; zramSwap.enable = lib.mkDefault true;
@ -52,7 +54,6 @@
nixPath = [ "nixpkgs=flake:nixpkgs" ]; nixPath = [ "nixpkgs=flake:nixpkgs" ];
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
keep-build-log = false
''; '';
}; };

View file

@ -27,8 +27,11 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnome-tweaks gnome-tweaks
# https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/441
# gnomeExtensions.appindicator
(writeShellScriptBin "x-terminal-emulator" '' (writeShellScriptBin "x-terminal-emulator" ''
exec alacritty "$@" exec kitty "$@"
'') '')
(writeShellScriptBin "red" '' (writeShellScriptBin "red" ''
@ -51,7 +54,7 @@ in
gsettings set org.gnome.desktop.privacy remove-old-trash-files true 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.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-vertically "['<Super>w']"
gsettings set org.gnome.desktop.wm.keybindings maximize-horizontally "['<Super>e']" gsettings set org.gnome.desktop.wm.keybindings maximize-horizontally "['<Super>q']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']" 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-applications-backward "['<Shift><Super>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"