WIP: refactor homeeConfigs
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m0s
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 2m0s
This commit is contained in:
33
homeConfigs/global/appearance.nix
Normal file
33
homeConfigs/global/appearance.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
|
||||
dunst.enable = true;
|
||||
dunst.flavor="frappe";
|
||||
|
||||
kvantum.apply = true;
|
||||
rofi.enable = false;
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = { package = pkgs.flat-remix-gtk; name = "Flat-Remix-GTK-Grey-Darkest"; };
|
||||
font = { name = "Sans"; size = 11; };
|
||||
};
|
||||
|
||||
qt.style.name = "kvantum";
|
||||
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Classic";
|
||||
size = 16;
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/wallpaper.png".source = lib.mkDefault utils/wallpaper.png;
|
||||
".config/lock_screen.jpg".source = lib.mkDefault utils/lock_screen.jpg;
|
||||
};
|
||||
}
|
13
homeConfigs/global/catppuccin.nix
Normal file
13
homeConfigs/global/catppuccin.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
|
||||
dunst.enable = true;
|
||||
dunst.flavor="frappe";
|
||||
|
||||
kvantum.apply = true;
|
||||
rofi.enable = false;
|
||||
};
|
||||
}
|
16
homeConfigs/global/fileManager.nix
Normal file
16
homeConfigs/global/fileManager.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
settings.mgr.sort_dir_first=false;
|
||||
programs.bash.bashExtra = ''
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
IFS= read -r -d "" cwd < "$tmp"
|
||||
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
21
homeConfigs/global/rclone.nix
Normal file
21
homeConfigs/global/rclone.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ config, homeDir, ... }:
|
||||
{
|
||||
programs.rclone.enable = true;
|
||||
sops.secrets."nextcloud_fuse/password" = {};
|
||||
programs.rclone.remotes.nextcloud = {
|
||||
config = {
|
||||
type = "webdav";
|
||||
url = "https://nc.tmoron.fr/remote.php/dav/files/tom";
|
||||
vendor = "nextcloud";
|
||||
user = "tom";
|
||||
};
|
||||
secrets.pass = config.sops.secrets."nextcloud_fuse/password".path;
|
||||
mounts = {
|
||||
"/" = {
|
||||
enable = true;
|
||||
mountPoint = "${homeDir}/nextcloud";
|
||||
options.vfs-cache-mode = "writes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
13
homeConfigs/global/rofi.nix
Normal file
13
homeConfigs/global/rofi.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = "rounded-nord-dark";
|
||||
};
|
||||
|
||||
home.file.".local/share/rofi/themes".source = "${builtins.fetchGit {
|
||||
url = "https://github.com/newmanls/rofi-themes-collection";
|
||||
rev = "c8239a45edced3502894e1716a8b661fdea8f1c9";
|
||||
ref = "master";
|
||||
}}/themes";
|
||||
}
|
20
homeConfigs/global/shell.nix
Normal file
20
homeConfigs/global/shell.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ ... }:
|
||||
{
|
||||
home.shell.enableBashIntegration = true;
|
||||
home.shellAliases = {
|
||||
ls= "ls --color=auto";
|
||||
grep = "grep --color=auto";
|
||||
vim = "nvim";
|
||||
vi = "nvim";
|
||||
hl = "Hyprland";
|
||||
clr = "clear";
|
||||
noidle = "systemctl --user stop hypridle";
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
historyControl = ["ignoreboth"];
|
||||
historyIgnore = [ "ls" "cd" "exit" ];
|
||||
shellOptions = [ "cdspell" "autocd"];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user