Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rules and cleanup packages #12

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[
<home-manager/nixos>
./modules/antivirus.nix
./modules/docker.nix
./modules/gnome.nix
./modules/jetbrains.nix
./modules/opensnitch.nix
Expand Down
3 changes: 1 addition & 2 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
gnupg
htop
jq
kooha
kubectl
libreoffice-fresh
openssl
pciutils
Expand Down Expand Up @@ -141,6 +139,7 @@
"Alacritty.desktop"
"firefox.desktop"
"rust-rover.desktop"
"webstorm.desktop"
"signal-desktop.desktop"
];
};
Expand Down
9 changes: 0 additions & 9 deletions modules/docker.nix

This file was deleted.

3 changes: 0 additions & 3 deletions modules/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,5 @@
];
};
};

};


}
5 changes: 3 additions & 2 deletions modules/jetbrains.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
environment.systemPackages = with pkgs.jetbrains; [
pycharm-professional
rust-rover
webstorm
];

services.opensnitch.rules = {
Expand All @@ -16,10 +17,10 @@
operand = "list";
list = [
{
type = "regexp";
type = "simple";
sensitive = false;
operand = "process.path";
data = "^(${lib.getBin pkgs.jetbrains.jdk})/lib/openjdk/bin/java$";
data = "${lib.getBin pkgs.jetbrains.jdk})/lib/openjdk/bin/java";
}
{
type = "regexp";
Expand Down
2 changes: 0 additions & 2 deletions modules/signal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,5 @@
];
};
};

};

}
1 change: 0 additions & 1 deletion modules/slack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
];
};
};

};
}
27 changes: 27 additions & 0 deletions modules/steam.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,31 @@
steam
];

services.opensnitch.rules = {
rule-500-steam = {
name = "Allow Steam";
enabled = true;
action = "allow";
duration = "always";
operator = {
type = "list";
operand = "list";
list = [
{
type = "regexp";
sensitive = false;
operand = "process.path";
data = "^/home/stusmall/.local/share/Steam/ubuntu12_32/steam|/home/stusmall/.local/share/Steam/ubuntu12_64/steamwebhelper$";
}
{
type = "regexp";
operand = "dest.host";
sensitive = false;
data = "^(api.steampowered.com|([a-z0-9|-]+\.)*steamcontent.com|([a-z0-9|-]+\.)*steamstatic.com|([a-z0-9|-]+\.)*steamserver.net|steamcommunity.com|steamstore-a.akamaihd.net|([a-z0-9|-]+\.)*.steampowered.com)$";
}
];
};
};
};

}
3 changes: 0 additions & 3 deletions modules/work.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,5 @@
];
};
};

};


}