feat: pass and import plugins config

This commit is contained in:
Zhongheng Liu 2024-10-06 23:43:37 +03:00
commit 62c6c836e3
No known key found for this signature in database
5 changed files with 40 additions and 15 deletions

View file

@ -28,17 +28,16 @@
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg"; myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg";
myDisplayName = "Zhongheng Liu"; myDisplayName = "Zhongheng Liu";
myEmail = "z.liu@outlook.com.gr"; myEmail = "z.liu@outlook.com.gr";
myAutostartCommands = [
"fcitx5"
"${pkgs.udiskie}/bin/udiskie"
"${pkgs.pa-notify}/bin/pa-notify"
];
specialisation."powersave".configuration = { specialisation."powersave".configuration = {
myAutostartCommands = [ myAutostartCommands = ["${pkgs.brightnessctl}/bin/brightnessctl s 64"];
"${pkgs.brightnessctl}/bin/brightnessctl s 64"
];
}; };
myConfigLocation = "/home/${myUserName}/nix-conf"; myConfigLocation = "/home/${myUserName}/nix-conf";
desktopFontFullName = "BlexMono Nerd Font"; desktopFontFullName = "BlexMono Nerd Font";
myAutostartCommands = [
"fcitx5"
"${pkgs.foot}/bin/foot --server -f \"${desktopFontFullName}:size=12\" -o colors.alpha=0.85"
"${pkgs.udiskie}/bin/udiskie"
"${pkgs.pa-notify}/bin/pa-notify"
];
}; };
} }

View file

@ -51,7 +51,6 @@
protonvpn-gui protonvpn-gui
devenv devenv
vlc vlc
zed-editor
rhythmbox rhythmbox
qq qq
shotwell shotwell
@ -78,7 +77,20 @@
home-manager.enable = true; home-manager.enable = true;
firefox = { firefox = {
enable = true; enable = true;
package = pkgs.firefox-devedition; package = with pkgs; (firefox-devedition.override {
nativeMessagingHosts = [
(passff-host.overrideAttrs (old: {
dontStrip = true;
patchPhase = ''sed -i 's#COMMAND = "pass"#COMMAND = "${
pass.withExtensions (ext:
with ext; [
pass-otp
pass-import
])
}/bin/pass"#' src/passff.py'';
}))
];
});
}; };
thunderbird = { thunderbird = {
enable = true; enable = true;

View file

@ -2,7 +2,7 @@
config, config,
pkgs, pkgs,
}: let }: let
terminalCmd = "${pkgs.foot}/bin/foot -f '${config.desktopFontFullName}:size=16' -o colors.alpha=0.80"; terminalCmd = "${pkgs.foot}/bin/footclient";
screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png"; screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png";
in in
[ [

View file

@ -17,8 +17,9 @@
xwayland = {force_zero_scaling = true;}; xwayland = {force_zero_scaling = true;};
monitor = [ monitor = [
#"eDP-1, 1920x1080@165,0x0,1" #"eDP-1, 1920x1080@165,0x0,1"
"HDMI-A-1, 1920x1080@75, 2560x0, 1" "desc:XMI Mi 27 NFGL 3215000032603, 1920x1080@75, 2560x0, 1"
"eDP-2,preferred, auto, ${builtins.toString config.displayScale}" "desc:BOE 0x0B40,preferred, auto, ${builtins.toString config.displayScale}"
", preferred, auto, 1" # wildcard definition
]; ];
general = { general = {
border_size = 1; border_size = 1;
@ -40,7 +41,7 @@
exec-once = exec-once =
config.myAutostartCommands config.myAutostartCommands
++ [ ++ [
"[workspace special silent] ${pkgs.foot}/bin/foot -f '${config.desktopFontFullName}:size=16' -o colors.alpha=0.80 ${config.myShells.defaultShell}" "[workspace special silent] ${pkgs.foot}/bin/footclient ${config.myShells.defaultShell}"
]; ];
misc = { misc = {
disable_hyprland_logo = true; disable_hyprland_logo = true;

View file

@ -22,6 +22,13 @@
FLAKE = config.myConfigLocation; FLAKE = config.myConfigLocation;
GTK_IM_MODULE = lib.mkForce ""; GTK_IM_MODULE = lib.mkForce "";
}; };
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
enableSSHSupport = true;
};
programs.gamescope = { programs.gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
@ -82,6 +89,12 @@
}; };
security.polkit.enable = true; security.polkit.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(pass-wayland.withExtensions (exts: [
exts.pass-otp
exts.pass-import
]))
gparted
zed-editor
libsForQt5.qt5.qtquickcontrols2 libsForQt5.qt5.qtquickcontrols2
libsForQt5.qt5.qtgraphicaleffects libsForQt5.qt5.qtgraphicaleffects
]; ];
@ -138,7 +151,7 @@
initialPassword = "stevenpassword"; initialPassword = "stevenpassword";
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = []; openssh.authorizedKeys.keys = [];
packages = with pkgs; [nh gparted]; packages = with pkgs; [nh];
extraGroups = ["wheel" "input" "networkmanager"]; extraGroups = ["wheel" "input" "networkmanager"];
}; };
}; };