Update system
This commit is contained in:
parent
84b5700555
commit
b222c15014
10 changed files with 150 additions and 209 deletions
|
@ -6,6 +6,11 @@
|
|||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-24.8.6"
|
||||
"electron-25.9.0"
|
||||
];
|
||||
|
||||
documentation = {
|
||||
enable = true;
|
||||
doc.enable = true;
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
{ system, inputs, impurity, lib, config, pkgs, ... }: let
|
||||
inherit (inputs) hyprland hyprpaper hyprland-hy3;
|
||||
|
||||
wrapper = pkgs.writeShellScriptBin "hyprland" ''
|
||||
# I blame home manager
|
||||
wrapper = pkgs.callPackage ({ ... }: pkgs.writeShellScriptBin "hyprland" ''
|
||||
${builtins.readFile ./session.sh}
|
||||
${config.hyprland-session.prerun}
|
||||
${hyprland.packages.${system}.default}/bin/Hyprland $@
|
||||
'';
|
||||
'') {};
|
||||
in {
|
||||
imports = [ hyprland.nixosModules.default ];
|
||||
|
||||
|
@ -31,10 +32,15 @@ in {
|
|||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-kde
|
||||
];
|
||||
|
||||
config.common.default = [
|
||||
"hyprland"
|
||||
"kde"
|
||||
];
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
@ -44,6 +50,7 @@ in {
|
|||
|
||||
home.packages = with pkgs; [
|
||||
wrapper
|
||||
hyprpaper
|
||||
|
||||
# environment programs
|
||||
wl-clipboard
|
||||
|
@ -68,7 +75,7 @@ in {
|
|||
enable = true;
|
||||
|
||||
package = wrapper;
|
||||
plugins = [ hyprland-hy3.packages.${system}.default ];
|
||||
plugins = [ hyprland-hy3.packages.${system}.default inputs.hyprfocus.packages.${system}.default ];
|
||||
|
||||
extraConfig = ''
|
||||
exec-once = ${hyprpaper.packages.${system}.default}/bin/hyprpaper
|
||||
|
|
|
@ -83,12 +83,30 @@ plugin {
|
|||
trigger_height = 500
|
||||
}
|
||||
}
|
||||
|
||||
hyprfocus {
|
||||
enabled = false
|
||||
|
||||
keyboard_focus_animation = shrink
|
||||
|
||||
bezier = bezIn, 0.5,0.0,1.0,0.5
|
||||
bezier = bezOut, 0.0,0.5,0.5,1.0
|
||||
|
||||
shrink {
|
||||
shrink_percentage = 0.99
|
||||
|
||||
in_bezier = bezIn
|
||||
in_speed = 1
|
||||
|
||||
out_bezier = bezOut
|
||||
out_speed = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
monitor = , preferred, auto, 1
|
||||
|
||||
layerrule = blur, wofi
|
||||
layerrule = blur, ironbar
|
||||
|
||||
windowrulev2 = float, class:^(opensnitch_ui)$
|
||||
windowrulev2 = dimaround, class:^(opensnitch_ui)$
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
position = "left"
|
||||
|
||||
margin = {
|
||||
top = 3
|
||||
bottom = 3
|
||||
right = 5
|
||||
}
|
||||
|
||||
start = [
|
||||
{ type = "workspaces" }
|
||||
]
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{ system, inputs, config, lib, impurity, ... }: {
|
||||
home-manager.users.${config.main-user} = {
|
||||
imports = [ inputs.ironbar.homeManagerModules.default ];
|
||||
|
||||
programs.ironbar = {
|
||||
enable = true;
|
||||
package = inputs.ironbar.packages.${system}.default;
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"ironbar/config.json".enable = false;
|
||||
"ironbar/config.corn".source = (impurity.link ./config.corn);
|
||||
"ironbar/style.css".source = (impurity.link ./style.css);
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
* {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.background {
|
||||
background-color: rgba(0x00, 0x10, 0x17, 0.4);
|
||||
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-left-width: 0;
|
||||
border-radius: 10px;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-color: rgba(0x59, 0x59, 0x59, 0.7);
|
||||
}
|
||||
|
||||
#bar {
|
||||
margin: 7px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.popup {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.workspaces > .item {
|
||||
padding: 4px 0;
|
||||
border-radius: 0;
|
||||
border-left-width: 4px;
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.workspaces > .item.focused {
|
||||
border-color: rgba(0x59, 0x59, 0x59, 0.5);
|
||||
background-color: rgba(0xff, 0xff, 0xff, 0.1);
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
.clock {
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
20
modules/polkit.nix
Normal file
20
modules/polkit.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
systemd = {
|
||||
user.services.polkit-agent = {
|
||||
wants = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,8 +1,4 @@
|
|||
{ system, inputs, pkgs, config, ... }: {
|
||||
imports = [
|
||||
../ironbar
|
||||
];
|
||||
|
||||
system.extraDependencies = with pkgs; [ ungoogled-chromium ];
|
||||
|
||||
fonts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue