diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-09-25 06:22:41 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-09-25 06:31:16 +0530 |
commit | 414198829b8708c84f6d7adfe952bb9746e1897a (patch) | |
tree | 232292e0091d803dcdef391fab36c1c7a7bfebe2 | |
parent | a6877d99dd51aaadf2b78d1edc80eead9b0782a1 (diff) |
pc/modules/nocodb: init
-rw-r--r-- | os/cez/modules/specialisation.nix | 2 | ||||
-rw-r--r-- | os/common/configuration.nix | 3 | ||||
-rw-r--r-- | os/pc/configuration.nix | 1 | ||||
-rw-r--r-- | os/pc/modules/nocodb.nix | 14 |
4 files changed, 18 insertions, 2 deletions
diff --git a/os/cez/modules/specialisation.nix b/os/cez/modules/specialisation.nix index ccee839..abc08e8 100644 --- a/os/cez/modules/specialisation.nix +++ b/os/cez/modules/specialisation.nix @@ -22,7 +22,5 @@ xserver.videoDrivers = [ "nvidia" ]; tlp.settings.PLATFORM_PROFILE_ON_AC = lib.mkForce "performance"; }; - nixpkgs.config.allowUnfreePredicate = - pkg: builtins.elem (lib.getName pkg) [ "nvidia-x11" ]; }; } diff --git a/os/common/configuration.nix b/os/common/configuration.nix index 57d40c4..44afc1a 100644 --- a/os/common/configuration.nix +++ b/os/common/configuration.nix @@ -49,4 +49,7 @@ in { PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " ''; + + nixpkgs.config.allowUnfreePredicate = + pkg: builtins.elem (lib.getName pkg) [ "nvidia-x11" "slack" ]; } diff --git a/os/pc/configuration.nix b/os/pc/configuration.nix index 180080f..f9fbcec 100644 --- a/os/pc/configuration.nix +++ b/os/pc/configuration.nix @@ -9,6 +9,7 @@ in { ./modules/network.nix ./modules/wayland.nix ./modules/nopolkit.nix + ./modules/nocodb.nix ]; boot = { diff --git a/os/pc/modules/nocodb.nix b/os/pc/modules/nocodb.nix new file mode 100644 index 0000000..d34aca9 --- /dev/null +++ b/os/pc/modules/nocodb.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: let + user = config.global.userdata.name; +in { + programs.firejail = { + enable = true; + wrappedBinaries.slack = { + executable = lib.getExe pkgs.slack; + profile = "${pkgs.firejail}/etc/firejail/slack.profile"; + }; + }; + + virtualisation.docker.enable = true; + users.extraGroups.docker.members = [ user ]; +} |