mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Implement home-manager
This commit is contained in:
31
common/modules/home/dconf/apps.nix
Normal file
31
common/modules/home/dconf/apps.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
};
|
||||
|
||||
"org/gnome/Console" = {
|
||||
custom-font = "FiraCode Nerd Font Mono 10";
|
||||
use-system-font = false;
|
||||
};
|
||||
|
||||
"org/gnome/TextEditor" = {
|
||||
custom-font = "Fira Code weight=450 11";
|
||||
use-system-font = false;
|
||||
};
|
||||
|
||||
"org/gnome/nautilus/preferences" = {
|
||||
default-folder-viewer = "icon-view";
|
||||
migrated-gtk-settings = true;
|
||||
recursive-search = "always";
|
||||
search-filter-time-type = "last_modified";
|
||||
show-directory-item-counts = "always";
|
||||
show-image-thumbnails = "always";
|
||||
};
|
||||
};
|
||||
}
|
||||
17
common/modules/home/dconf/default.nix
Normal file
17
common/modules/home/dconf/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./apps.nix
|
||||
./extensions.nix
|
||||
./gnome.nix
|
||||
];
|
||||
|
||||
dconf.settings = {
|
||||
"system/locale" = {
|
||||
region = "cs_CZ.UTF-8";
|
||||
};
|
||||
};
|
||||
}
|
||||
163
common/modules/home/dconf/extensions.nix
Normal file
163
common/modules/home/dconf/extensions.nix
Normal file
@@ -0,0 +1,163 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/gnome/shell/extensions/user-theme" = {
|
||||
name = "Flat-Remix-Darkest-fullPanel";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/thanatophobia" = {
|
||||
year = 2004;
|
||||
month = 11;
|
||||
day = 23;
|
||||
hour = 12;
|
||||
minute = 0;
|
||||
sex = 1;
|
||||
expectancy = 74.11;
|
||||
rounding = 7;
|
||||
country = "CZE";
|
||||
countdown = 0;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/appindicator" = {
|
||||
icon-brightness = 0.0;
|
||||
icon-contrast = 0.0;
|
||||
icon-opacity = 240;
|
||||
icon-saturation = 0.0;
|
||||
icon-size = 0;
|
||||
legacy-tray-enabled = true;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/dash-to-dock" = {
|
||||
apply-custom-theme = false;
|
||||
autohide-in-fullscreen = false;
|
||||
background-color = "rgb(0,0,0)";
|
||||
background-opacity = 0.8;
|
||||
click-action = "skip";
|
||||
custom-background-color = true;
|
||||
custom-theme-shrink = true;
|
||||
customize-alphas = true;
|
||||
dash-max-icon-size = 28;
|
||||
dock-fixed = false;
|
||||
dock-position = "BOTTOM";
|
||||
extend-height = false;
|
||||
height-fraction = 0.9;
|
||||
hide-tooltip = false;
|
||||
intellihide-mode = "ALL_WINDOWS";
|
||||
isolate-workspaces = true;
|
||||
max-alpha = 0.6;
|
||||
middle-click-action = "launch";
|
||||
min-alpha = 0.10;
|
||||
preferred-monitor = -2;
|
||||
preview-size-scale = 0.5;
|
||||
running-indicator-style = "DOTS";
|
||||
scroll-action = "cycle-windows";
|
||||
shift-click-action = "minimize";
|
||||
shift-middle-click-action = "launch";
|
||||
show-apps-at-top = true;
|
||||
show-mounts-network = true;
|
||||
transparency-mode = "DYNAMIC";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/bluetooth-quick-connect" = {
|
||||
show-battery-value-on = true;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell" = {
|
||||
settings-version = 2;
|
||||
pipelines = lib.hm.gvariant.mkValue ''
|
||||
{
|
||||
'pipeline_default': {
|
||||
'name': <'Default'>,
|
||||
'effects': <[
|
||||
{
|
||||
'type': <'native_static_gaussian_blur'>,
|
||||
'id': <'effect_27049338116840'>,
|
||||
'params': <@a{sv} {}>
|
||||
},
|
||||
{
|
||||
'type': <'noise'>,
|
||||
'id': <'effect_90950561821691'>,
|
||||
'params': <{'lightness': <0.64>, 'noise': <0.25>}>
|
||||
}
|
||||
]>
|
||||
},
|
||||
'pipeline_default_rounded': {
|
||||
'name': <'Default rounded'>,
|
||||
'effects': <[
|
||||
{
|
||||
'type': <'native_static_gaussian_blur'>,
|
||||
'id': <'effect_000000000001'>,
|
||||
'params': <{'radius': <30>, 'brightness': <0.6>}>
|
||||
},
|
||||
{
|
||||
'type': <'corner'>,
|
||||
'id': <'effect_000000000002'>,
|
||||
'params': <{'radius': <24>}>
|
||||
}
|
||||
]>
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/appfolder" = {
|
||||
brightness = 0.6;
|
||||
sigma = 30;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/applications" = {
|
||||
blur = false;
|
||||
brightness = 1.0;
|
||||
opacity = 217;
|
||||
whitelist = [ "org.gnome.Console" ];
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/coverflow-alt-tab" = {
|
||||
blur = false;
|
||||
pipeline = "pipeline_default";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/dash-to-dock" = {
|
||||
blur = false;
|
||||
brightness = 0.6;
|
||||
pipeline = "pipeline_default_rounded";
|
||||
sigma = 30;
|
||||
static-blur = false;
|
||||
style-dash-to-dock = 0;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/lockscreen" = {
|
||||
pipeline = "pipeline_default";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/overview" = {
|
||||
pipeline = "pipeline_default";
|
||||
style-components = 2;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/panel" = {
|
||||
brightness = 0.6;
|
||||
force-light-text = false;
|
||||
pipeline = "pipeline_default";
|
||||
sigma = 30;
|
||||
static-blur = false;
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/screenshot" = {
|
||||
pipeline = "pipeline_default";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell/window-list" = {
|
||||
brightness = 0.6;
|
||||
sigma = 30;
|
||||
};
|
||||
|
||||
"org/gnome/shell/ectensions/bubblemail" = {
|
||||
newest-first = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
103
common/modules/home/dconf/gnome.nix
Normal file
103
common/modules/home/dconf/gnome.nix
Normal file
@@ -0,0 +1,103 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
accent-color = "red";
|
||||
clock-format = "24h";
|
||||
clock-show-seconds = true;
|
||||
color-scheme = "prefer-dark";
|
||||
cursor-size = 24;
|
||||
cursor-theme = "Bibata-Modern-Classic";
|
||||
font-antialiasing = "grayscale";
|
||||
font-hinting = "slight";
|
||||
gtk-theme = "Flat-Remix-GTK-Red-Darkest";
|
||||
icon-theme = "Papirus-Dark";
|
||||
show-battery-percentage = true;
|
||||
toolkit-accessibility = true;
|
||||
overlay-scrolling = true;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/peripherals/mouse" = {
|
||||
accel-profile = "flat";
|
||||
natural-scroll = false;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/peripherals/keyboard" = {
|
||||
numlock-state = true;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/background" = {
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file:///home/jax/.config/background";
|
||||
picture-uri-dark = "file:///home/jax/.config/background";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
move-to-workspace-left = [ "<Shift><Control><Super>Left" ];
|
||||
move-to-workspace-right = [ "<Shift><Control><Super>Right" ];
|
||||
switch-to-workspace-left = [ "<Control><Super>Left" ];
|
||||
switch-to-workspace-right = [ "<Control><Super>Right" ];
|
||||
switch-windows = [ "<Alt>Tab" ];
|
||||
switch-windows-backward = [ "<Shift><Alt>Tab" ];
|
||||
toggle-fullscreen = [ "<Super>F11" ];
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
button-layout = "appmenu:minimize,close";
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
custom-keybindings = lib.mkBefore [
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||
binding = "<Control><Alt>t";
|
||||
command = "kgx";
|
||||
name = "Terminal";
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||
binding = "<Super>e";
|
||||
command = "nautilus";
|
||||
name = "Filus Managus";
|
||||
};
|
||||
|
||||
"org/gnome/mutter" = {
|
||||
attach-modal-dialogs = false;
|
||||
experimental-features = [
|
||||
"scale-monitor-framebuffer"
|
||||
"variable-refresh-rate"
|
||||
"xwayland-native-scaling"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
favorite-apps = [
|
||||
"vesktop.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"steam.desktop"
|
||||
"firefox.desktop"
|
||||
"org.telegram.desktop.desktop"
|
||||
"org.gnome.Console.desktop"
|
||||
"io.missioncenter.MissionCenter.desktop"
|
||||
"tidal-hifi.desktop"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/desktop/datetime" = {
|
||||
automatic-timezone = true;
|
||||
};
|
||||
|
||||
"org/gnome/system/location" = {
|
||||
enabled = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user