add udiskie for automount
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
./git
|
||||
./xdg
|
||||
./nh
|
||||
./udiskie
|
||||
];
|
||||
|
||||
dots = {
|
||||
@@ -26,6 +27,7 @@
|
||||
git.enable = lib.mkDefault true;
|
||||
xdg.enable = lib.mkDefault true;
|
||||
nh.enable = lib.mkDefault true;
|
||||
udiskie.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ set ignorecase true
|
||||
|
||||
# shortcuts
|
||||
map gb cd /holocron
|
||||
map gz cd %{{ [ -d /holocron ] && printf /holocron || printf /media/holocron }}
|
||||
map gn cd ~/.nix
|
||||
map gc cd ~/.config
|
||||
|
||||
|
||||
34
users/blake/dots/core/udiskie/default.nix
Normal file
34
users/blake/dots/core/udiskie/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
program = "udiskie";
|
||||
cfg = config.dots.${program};
|
||||
home_dir = config.home.homeDirectory;
|
||||
in {
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
automount = true;
|
||||
notify = true;
|
||||
tray = "auto";
|
||||
settings = {
|
||||
rules = [
|
||||
{
|
||||
id_uuid = ["4E21-0000" "9EA2-A886"];
|
||||
automount = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# add userspace tools
|
||||
home.packages = with pkgs; [udiskie];
|
||||
};
|
||||
}
|
||||
46
users/blake/hosts/froakie.nix
Normal file
46
users/blake/hosts/froakie.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../dots
|
||||
];
|
||||
|
||||
dots = {
|
||||
stylix = {
|
||||
enable = true;
|
||||
wallpaper = ../assets/wallpapers/yveltal.jpg;
|
||||
};
|
||||
|
||||
programs.enable = true;
|
||||
|
||||
kitty.enable = true;
|
||||
librewolf.enable = true;
|
||||
waybar.enable = true;
|
||||
dunst.enable = true;
|
||||
hypr.enable = true;
|
||||
tofi.enable = true;
|
||||
clipboard.enable = true;
|
||||
cursor.enable = true;
|
||||
|
||||
btop.enable = true;
|
||||
lf.enable = true;
|
||||
nvf.enable = true;
|
||||
zsh.enable = true;
|
||||
ssh.enable = true;
|
||||
gpg.enable = true;
|
||||
git.enable = true;
|
||||
xdg.enable = true;
|
||||
|
||||
libreoffice.enable = true;
|
||||
gnucash.enable = true;
|
||||
qalculate.enable = true;
|
||||
bitwarden.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user