adding first steps to cnixlab and some small fixes
This commit is contained in:
@@ -22,9 +22,9 @@ in {
|
||||
default = {
|
||||
search = {
|
||||
force = true;
|
||||
default = "DuckDuckGo";
|
||||
privateDefault = "DuckDuckGo";
|
||||
order = ["DuckDuckGo" "Google"];
|
||||
default = "ddg";
|
||||
privateDefault = "ddg";
|
||||
order = ["ddg" "google"];
|
||||
};
|
||||
bookmarks = {};
|
||||
# extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||
|
||||
@@ -44,7 +44,7 @@ in {
|
||||
};
|
||||
};
|
||||
}
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.fuzzel.settings.main.terminal = "${inputs.ghostty.packages.x86_64-linux.default}/bin/ghostty";
|
||||
})
|
||||
(mkIf (host == "cnixpad") {
|
||||
|
||||
@@ -35,7 +35,7 @@ in {
|
||||
};
|
||||
};
|
||||
}
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.ghostty.settings.command = "${getExe config.programs.fish.package}";
|
||||
})
|
||||
(mkIf (host == "cnixpad") {
|
||||
|
||||
@@ -38,6 +38,5 @@ in {
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.user.services.hypridle.Unit.After = lib.mkForce "graphical-session.target";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ in {
|
||||
];
|
||||
|
||||
wallpaper = [
|
||||
# cnix
|
||||
# cnixtop
|
||||
"DP-3,${config.theme.background.desktop}"
|
||||
"DP-4,${config.theme.background.desktop}"
|
||||
# cnixpad
|
||||
@@ -51,6 +51,5 @@ in {
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.user.services.hyprpaper.Unit.After = lib.mkForce "graphical-session.target";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkForce elem;
|
||||
browser =
|
||||
if elem osConfig.networking.hostName ["cnix" "cnixpad"]
|
||||
if elem osConfig.networking.hostName ["cnixtop" "cnixpad"]
|
||||
then "zen.desktop"
|
||||
else "firefox.desktop";
|
||||
cfg = config.home.services.xdg;
|
||||
|
||||
@@ -60,7 +60,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.hyprland.settings = {
|
||||
render = {
|
||||
explicit_sync = 2;
|
||||
|
||||
@@ -90,7 +90,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.hyprland.settings = {
|
||||
"$terminal" = "ghostty";
|
||||
"$browser" = "zen";
|
||||
|
||||
@@ -81,7 +81,7 @@ in {
|
||||
];
|
||||
};
|
||||
}
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.hyprland.settings.workspace = [
|
||||
"name:1,monitor:DP-3"
|
||||
"name:2,monitor:DP-3"
|
||||
|
||||
@@ -21,7 +21,7 @@ in {
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnix") {
|
||||
(mkIf (host == "cnixtop") {
|
||||
programs.hyprland.settings.exec-once = [
|
||||
"uwsm app -- mullvad-vpn"
|
||||
"uwsm app -- blueman-applet"
|
||||
|
||||
@@ -12,7 +12,7 @@ in {
|
||||
options = {
|
||||
nixos.services.agenix = {
|
||||
enable = mkEnableOption "Enables agenix system environment";
|
||||
cnix.enable = mkOption {
|
||||
cnixtop.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Apply cnix agenix settings";
|
||||
@@ -32,7 +32,7 @@ in {
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
age = mkMerge [
|
||||
(mkIf cfg.cnix.enable {
|
||||
(mkIf cfg.cnixtop.enable {
|
||||
secrets = {
|
||||
cnstssh.file = "${self}/secrets/cnstssh.age";
|
||||
cnixssh.file = "${self}/secrets/cnixssh.age";
|
||||
|
||||
Reference in New Issue
Block a user