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;
|
systemd.services.samba-smbd.enable = lib.mkDefault false;
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNmbd = lib.mkDefault false;
|
nmbd.enable = lib.mkDefault false;
|
||||||
enableWinbindd = lib.mkDefault false;
|
winbindd.enable = lib.mkDefault false;
|
||||||
package = pkgs.samba4Full;
|
package = pkgs.samba4Full;
|
||||||
securityType = "ads";
|
settings.global = {
|
||||||
extraConfig = ''
|
"security" = "ads";
|
||||||
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";
|
||||||
'';
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,6 @@
|
||||||
|
|
||||||
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;
|
||||||
|
@ -54,6 +52,7 @@
|
||||||
nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
keep-build-log = false
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,8 @@ 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 kitty "$@"
|
exec alacritty "$@"
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(writeShellScriptBin "red" ''
|
(writeShellScriptBin "red" ''
|
||||||
|
@ -54,7 +51,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>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 "['<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']"
|
||||||
|
|
Loading…
Reference in a new issue