fix samba

This commit is contained in:
mjallen18
2024-03-11 09:09:59 -05:00
parent 5c95d77d97
commit 3c5cde29f3
4 changed files with 30 additions and 34 deletions

View File

@@ -83,5 +83,32 @@ in {
environment.systemPackages = with pkgs; [
pinentry-curses
];
# Security config
security = {
rtkit.enable = true;
# configure sudo
sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/systemctl suspend";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/poweroff";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
};
}

View File

@@ -134,37 +134,6 @@ in {
# xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
# Security config
security = {
rtkit.enable = true;
# configure sudo
sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/systemctl suspend";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/poweroff";
options = [ "NOPASSWD" ];
}
{
command = "/home/matt/nix-config/reset_wifi";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
};
# Configure environment
environment = {
# List packages installed in system profile. To search, run:

View File

@@ -35,7 +35,7 @@ with lib; {
tvPath = mkOption {
type = types.str;
default = "/mnt/mainpool/Tv";
default = "/mnt/mainpool/TV";
};
downloadsPath = mkOption {

View File

@@ -45,11 +45,11 @@ with lib; {
};
createMask = mkOption {
type = types.str;
default = "0644";
default = "0774";
};
directoryMask = mkOption {
type = types.str;
default = "0755";
default = "0775";
};
enableTimeMachine = mkOption {
type = types.bool;