restruct and adding gnome polkit, anyrun

This commit is contained in:
cnst
2024-07-06 14:17:47 +02:00
parent 7531426abe
commit f002bd7240
9 changed files with 122 additions and 5 deletions

View File

@@ -2,12 +2,14 @@
home.sessionVariables = {
BROWSER = "firefox";
EDITOR = "nvim";
TERM = "kitty";
TERM = "foot";
};
imports = [
./git
./gui
./shell/cnst.nix
./appearance
./system/polkit.nix
./system/udiskie.nix
];
}

View File

@@ -0,0 +1,46 @@
{
pkgs,
inputs,
...
}: {
imports = [
inputs.anyrun.homeManagerModules.default
];
programs.anyrun = {
enable = true;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
applications
# randr
rink
shell
symbols
];
width.fraction = 0.25;
y.fraction = 0.3;
hidePluginInfo = true;
closeOnClick = true;
};
extraCss = builtins.readFile (./. + "/style-dark.css");
extraConfigFiles = {
"applications.ron".text = ''
Config(
desktop_actions: false,
max_entries: 5,
terminal: Some("foot"),
)
'';
"shell.ron".text = ''
Config(
prefix: ">"
)
'';
};
};
}

View File

@@ -0,0 +1,48 @@
* {
all: unset;
font-size: 1.2rem;
}
#window,
#match,
#entry,
#plugin,
#main {
background: transparent;
}
#match.activatable {
border-radius: 8px;
margin: 4px 0;
padding: 4px;
transition: 100ms ease-out;
}
#match.activatable:first-child {
margin-top: 12px;
}
#match.activatable:last-child {
margin-bottom: 0;
}
#match:hover {
background: rgba(255, 255, 255, 0.05);
}
#match:selected {
background: rgba(255, 255, 255, 0.1);
}
#entry {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 4px 8px;
}
box#main {
background: rgba(0, 0, 0, 0.5);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.1),
0 30px 30px 15px rgba(0, 0, 0, 0.5);
border-radius: 20px;
padding: 12px;
}

View File

@@ -6,8 +6,9 @@
}: {
imports = [
../../extra/mako
./rofi.nix
./waybar.nix
./rofi
./waybar
./anyrun
];
home.packages = with pkgs; [

View File

@@ -0,0 +1,19 @@
{pkgs, ...}: {
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit.Description = "polkit-gnome-authentication-agent-1";
Install = {
WantedBy = ["graphical-session.target"];
Wants = ["graphical-session.target"];
After = ["graphical-session.target"];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
}

View File

@@ -0,0 +1,3 @@
{
services.udiskie.enable = true;
}