aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-12-03 22:38:29 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2024-12-03 22:38:29 +0200
commitda68374b71c29fe38dacd9e7736f9712ee2baa29 (patch)
treee8b6d3ebde5fabe2720ebf23de2804fe28d5e893
parent24c24111601d4c34954bcd79d9ac3a362a518a66 (diff)
downloadnixos-configuration-da68374b71c29fe38dacd9e7736f9712ee2baa29.tar.gz
nixos-configuration-da68374b71c29fe38dacd9e7736f9712ee2baa29.tar.bz2
nixos-configuration-da68374b71c29fe38dacd9e7736f9712ee2baa29.zip
feat: various home-manager option improvements
nixpkgs-home-manager: fix: some insecure packages hyprland: move autoruns in hypr-specific file
-rw-r--r--home-manager/stvnliu/home.nix22
-rw-r--r--home-manager/stvnliu/hypr/hyprland/default.nix12
2 files changed, 17 insertions, 17 deletions
diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix
index d64933e..3fe5b53 100644
--- a/home-manager/stvnliu/home.nix
+++ b/home-manager/stvnliu/home.nix
@@ -33,6 +33,12 @@
];
# Configure your nixpkgs instance
config = {
+ permittedInsecurePackages = [
+ "dotnet-core-combined"
+ "dotnet-sdk-6.0.428"
+ "dotnet-sdk-7.0.410"
+ "dotnet-sdk-wrapped-6.0.428"
+ ];
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
@@ -65,17 +71,12 @@
];
myAutostartCommands = [
#"${pkgs.clash-verge-rev}/bin/clash-verge"
- "${config.programs.firefox.package}/bin/firefox"
- "${pkgs.thunderbird}/bin/thunderbird"
];
programs = {
obs-studio = {
enable = true;
- plugins = with pkgs.obs-studio-plugins; [
- wlrobs
- input-overlay
- ];
+ plugins = with pkgs.obs-studio-plugins; [wlrobs input-overlay];
};
home-manager.enable = true;
firefox = {
@@ -84,12 +85,9 @@
nativeMessagingHosts = [
(passff-host.overrideAttrs (old: {
dontStrip = true;
- patchPhase = ''sed -i 's#COMMAND = "pass"#COMMAND = "${
- pass.withExtensions (ext:
- with ext; [
- pass-otp
- pass-import
- ])
+ patchPhase = ''
+ sed -i 's#COMMAND = "pass"#COMMAND = "${
+ pass.withExtensions (ext: with ext; [pass-otp pass-import])
}/bin/pass"#' src/passff.py'';
}))
];
diff --git a/home-manager/stvnliu/hypr/hyprland/default.nix b/home-manager/stvnliu/hypr/hyprland/default.nix
index 58b0efe..a5bc05c 100644
--- a/home-manager/stvnliu/hypr/hyprland/default.nix
+++ b/home-manager/stvnliu/hypr/hyprland/default.nix
@@ -18,7 +18,9 @@
monitor = [
#"eDP-1, 1920x1080@165,0x0,1"
"desc:Xiaomi Corporation Mi 27 NFGL 3215000032603, 1920x1080@75, 2560x0, 1"
- "desc:BOE 0x0B40,preferred, auto, ${builtins.toString config.displayScale}"
+ "desc:BOE 0x0B40,preferred, auto, ${
+ builtins.toString config.displayScale
+ }"
", preferred, auto, 1" # wildcard definition
];
general = {
@@ -27,9 +29,7 @@
gaps_out = 5;
allow_tearing = true;
};
- windowrulev2 = [
- "immediate, class:^(cs2)$"
- ];
+ windowrulev2 = ["immediate, class:^(cs2)$"];
decoration = {rounding = 5;};
input = {
# xset rate 250 50 replacement on wayland...
@@ -41,7 +41,9 @@
exec-once =
config.myAutostartCommands
++ [
- "[workspace special silent] ${pkgs.foot}/bin/footclient ${config.myShells.defaultShell}"
+ # future hyprland-specific exec commands
+ "${config.programs.firefox.package}/bin/firefox"
+ "${pkgs.thunderbird}/bin/thunderbird"
];
misc = {
disable_hyprland_logo = true;