forked from foxora/nix
init
This commit is contained in:
commit
a07bd5fd9b
66 changed files with 6115 additions and 0 deletions
33
homes/modules/services/dunst.nix
Normal file
33
homes/modules/services/dunst.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
libnotify
|
||||
];
|
||||
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
monitor = "DP-3"; # second monitor
|
||||
origin = "top-left";
|
||||
layer = "top"; # above windows, below fullscreen
|
||||
offset = "(16, 24)";
|
||||
|
||||
padding = 4;
|
||||
gap_size = 4;
|
||||
frame_width = 2;
|
||||
|
||||
font = "DepartureMono Nerd Font 8";
|
||||
|
||||
corner_radius = 12;
|
||||
icon_corner_radius = 12;
|
||||
|
||||
progress_bar = true;
|
||||
progress_bar_height = 16;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
homes/modules/services/keepassxc/keepassxc.ini
Normal file
12
homes/modules/services/keepassxc/keepassxc.ini
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[General]
|
||||
ConfigVersion=2
|
||||
|
||||
[FdoSecrets]
|
||||
Enabled=true
|
||||
ShowNotification=true
|
||||
ConfirmAccessItem=true
|
||||
ConfirmDeleteItem=true
|
||||
|
||||
[GUI]
|
||||
MinimizeToTray=true
|
||||
ShowTrayIcon=false
|
||||
23
homes/modules/services/keepassxc/keepassxc.nix
Normal file
23
homes/modules/services/keepassxc/keepassxc.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, inputs, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
keepassxc
|
||||
];
|
||||
|
||||
systemd.user.services.keepassxc = {
|
||||
Unit = {
|
||||
Description = "KeePassXC password manager";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Description = "${pkgs.keepassxc}/bin/keepassxc";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
xdg.configFile."keepassxc/keepassxc.ini" = {
|
||||
source = ./keepassxc.ini;
|
||||
};
|
||||
}
|
||||
1
homes/modules/services/pulse/client.conf.template
Normal file
1
homes/modules/services/pulse/client.conf.template
Normal file
|
|
@ -0,0 +1 @@
|
|||
cookie-file = /run/user/{uid}/pulse/cookie
|
||||
9
homes/modules/services/pulse/pulse.nix
Normal file
9
homes/modules/services/pulse/pulse.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ inputs, lib, pkgs, config, osConfig, ... }:
|
||||
{
|
||||
# writes ./client.conf to ~/.config/pulse/client.conf
|
||||
xdg.configFile."pulse/client.conf".text = builtins.replaceStrings
|
||||
["{uid}"]
|
||||
# make sure ur user id is set!!!
|
||||
["${toString osConfig.users.users.${config.home.username}.uid}"]
|
||||
(builtins.readFile ./client.conf.template);
|
||||
}
|
||||
8
homes/modules/services/wireplumber/wireplumber.nix
Normal file
8
homes/modules/services/wireplumber/wireplumber.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ inputs, lib, pkgs, config, ... }:
|
||||
{
|
||||
# writes ./config to ~/.config/wireplumber
|
||||
xdg.configFile."wireplumber" = {
|
||||
recursive = true;
|
||||
source = ./config;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue