Compare commits

...

4 commits

Author SHA1 Message Date
f849a1ab5d
chore: update nysh 2024-11-21 00:13:57 +01:00
11c50f397f
chore: add container to firefox 2024-11-21 00:13:52 +01:00
a55bb2aa35
chore: update nysh 2024-11-20 11:28:25 +01:00
9355037627
chore: update nysh and relax service security 2024-11-20 11:00:10 +01:00
5 changed files with 25 additions and 18 deletions

8
flake.lock generated
View file

@ -287,11 +287,11 @@
"quickshell": "quickshell"
},
"locked": {
"lastModified": 1731862325,
"narHash": "sha256-K6F/3dMLzPucS0E3wCgqmIGu5WbrYRhVeTKRyFsh9Cc=",
"lastModified": 1732144137,
"narHash": "sha256-hrV1W+0oxvMNE9iEBSU0qSJV2kTFU+v5T0XnWZ1bcw4=",
"ref": "refs/heads/main",
"rev": "a57cc7c1d2f6dc5dd2642b6d9d9dab2ca8f43da2",
"revCount": 81,
"rev": "de30bb78c998c4e496316b4faa31062e1fbc7586",
"revCount": 86,
"type": "git",
"url": "https://git.ccnlc.eu/nydragon/nysh.git"
},

View file

@ -2,6 +2,7 @@
pkgs,
lib,
osConfig,
config,
...
}:
lib.mkIf osConfig.programs.firefox.enable {
@ -9,8 +10,8 @@ lib.mkIf osConfig.programs.firefox.enable {
enable = true;
# Installed by nixpkgs module
package = null;
profiles.ny = {
name = "ny";
profiles.${config.home.username} = {
name = config.home.username;
isDefault = true;
userChrome = ''
/* Hides the native tabs */
@ -26,6 +27,14 @@ lib.mkIf osConfig.programs.firefox.enable {
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
containers = {
uni = {
color = "blue";
icon = "briefcase";
};
};
containersForce = true;
search = {
default = "DuckDuckGo";
force = true;

View file

@ -115,12 +115,6 @@ lib.mkIf osConfig.programs.sway.enable {
#: }}}
};
#: }}}
#: Startup {{{
startup = [
{ command = "${config.services.kdeconnect.package}/bin/kdeconnect-indicator"; }
{ command = "${pkgs.protonmail-bridge-gui}/bin/protonmail-bridge-gui --no-window"; }
];
#: }}}
assigns = {
"2" = [ { app_id = "firefox"; } ];
"3" = [ { app_id = "obsidian"; } ];

View file

@ -154,7 +154,10 @@
MOZ_ENABLE_WAYLAND = 1;
};
security.polkit.enable = true;
security.polkit = {
enable = true;
package = pkgs.polkit-kde-agent;
};
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;

View file

@ -2,6 +2,7 @@
lib,
inputs',
config,
pkgs,
...
}:
let
@ -20,6 +21,11 @@ in
config = mkIf cfg.enable {
systemd.user.services.nysh = {
path = [
pkgs.curl
pkgs.brightnessctl
pkgs.networkmanager
];
wantedBy = [
"multi-user.target"
"graphical-session.target"
@ -33,11 +39,6 @@ in
Restart = "on-failure";
NoNewPrivileges = true;
PrivateMounts = true;
ProtectHostname = true;
ProtectKernelTunables = true;
PrivateTmp = true;
IPAddressDeny = "any";
};
};
};