restruct and adding gnome polkit, anyrun
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
46
home/core/gui/anyrun/default.nix
Normal file
46
home/core/gui/anyrun/default.nix
Normal 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: ">"
|
||||
)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
48
home/core/gui/anyrun/style-dark.css
Normal file
48
home/core/gui/anyrun/style-dark.css
Normal 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;
|
||||
}
|
||||
@@ -6,8 +6,9 @@
|
||||
}: {
|
||||
imports = [
|
||||
../../extra/mako
|
||||
./rofi.nix
|
||||
./waybar.nix
|
||||
./rofi
|
||||
./waybar
|
||||
./anyrun
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
||||
19
home/core/system/polkit.nix
Normal file
19
home/core/system/polkit.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
3
home/core/system/udiskie.nix
Normal file
3
home/core/system/udiskie.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
services.udiskie.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user