Refactoring so that device-specific homes would work
This commit is contained in:
230
home/common.nix
Normal file
230
home/common.nix
Normal file
@@ -0,0 +1,230 @@
|
||||
{ lib,
|
||||
config,
|
||||
pkgs,
|
||||
hostName,
|
||||
hyprland-toggle-tiling,
|
||||
legacy-launcher,
|
||||
pass-autotype,
|
||||
... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../modules/hyprland.nix
|
||||
./hosts/${hostName}.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "typo";
|
||||
homeDirectory = "/home/typo";
|
||||
stateVersion = "25.11";
|
||||
packages = with pkgs; [
|
||||
pass-autotype
|
||||
winbox4
|
||||
legacy-launcher
|
||||
hyprland-toggle-tiling
|
||||
killall
|
||||
lutris
|
||||
bottles
|
||||
wineWow64Packages.stable
|
||||
authenticator
|
||||
adw-gtk3
|
||||
mpv
|
||||
transmission-remote-gtk
|
||||
qbittorrent
|
||||
ranger
|
||||
htop-vim
|
||||
tuba
|
||||
papirus-icon-theme
|
||||
gnome-tweaks
|
||||
discord
|
||||
oh-my-fish
|
||||
monocraft
|
||||
lsd
|
||||
dust
|
||||
bat
|
||||
file
|
||||
addwater
|
||||
swaynotificationcenter
|
||||
swayosd
|
||||
pfetch
|
||||
waybar
|
||||
swww
|
||||
fuzzel
|
||||
waypaper
|
||||
hyprlock
|
||||
hypridle
|
||||
hyprsunset
|
||||
hyprpicker
|
||||
hyprshot
|
||||
hyprpolkitagent
|
||||
xdg-desktop-portal-hyprland
|
||||
vscode
|
||||
qtpass
|
||||
rnote
|
||||
fractal
|
||||
tidal-hifi
|
||||
high-tide
|
||||
pass-wayland
|
||||
kitty
|
||||
emacs
|
||||
vim
|
||||
git
|
||||
tree
|
||||
gnome-shell-extensions
|
||||
gnomeExtensions.alphabetical-app-grid
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.caffeine
|
||||
gnomeExtensions.clipboard-indicator
|
||||
gnomeExtensions.dash-to-dock
|
||||
gnomeExtensions.dash-to-panel
|
||||
gnomeExtensions.desktop-icons-ng-ding
|
||||
gnomeExtensions.gsconnect
|
||||
gnomeExtensions.tiling-shell
|
||||
];
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/background" = {
|
||||
picture-uri = "file:///home/typo/Pictures/Backgrounds/upscalemedia-transformed-light.png";
|
||||
picture-uri-dark = "file:///home/typo/Pictures/Backgrounds/upscalemedia-transformed.png";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
close = lib.hm.gvariant.mkValue ["<Super>q"];
|
||||
};
|
||||
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = lib.hm.gvariant.mkValue [
|
||||
"firefox.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"io.github.nokse22.high-tide.desktop"
|
||||
"org.gnome.Fractal.desktop"
|
||||
"discord.desktop"
|
||||
"emacsclient.desktop"
|
||||
"code.desktop"
|
||||
"com.github.flxzt.rnote.desktop"
|
||||
"org.gnome.Calendar.desktop"
|
||||
"org.gnome.Console.desktop"
|
||||
];
|
||||
|
||||
disabled-extensions = lib.hm.gvariant.mkValue [];
|
||||
|
||||
enabled-extensions = lib.hm.gvariant.mkValue [
|
||||
"AlphabeticalAppGrid@stuarthayhurst"
|
||||
"apps-menu@gnome-shell-extensions.gcampax.github.com"
|
||||
"blur-my-shell@aunetx"
|
||||
"caffeine@patapon.info"
|
||||
"clipboard-indicator@tudmotu.com"
|
||||
"dash-to-panel@jderose9.github.com"
|
||||
"gsconnect@andyholmes.github.io"
|
||||
"status-icons@gnome-shell-extensions.gcampax.github.com"
|
||||
"tilingshell@ferrarodomenico.com"
|
||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/libgnomekbd/keyboard" = {
|
||||
layouts = "['hu']";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
button-layout = ":minimize,maximize,close";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/interface" = {
|
||||
icon-theme = "Papirus-Dark";
|
||||
monospace-font-name = "Monocraft 10";
|
||||
document-font-name = "Adwaita Sans 10";
|
||||
font-name = "Adwaita Sans 10";
|
||||
cursor-theme = "Adwaita";
|
||||
gtk-theme = "adw-gtk3-dark";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/dash-to-panel" = {
|
||||
animate-appicon-hover=true;
|
||||
animate-appicon-hover-animation-convexity="{\"RIPPLE\": 2.0, \"PLANK\": 1.0, \"SIMPLE\": 0.0}";
|
||||
animate-appicon-hover-animation-extent="{\"RIPPLE\": 4, \"PLANK\": 4, \"SIMPLE\": 1}";
|
||||
animate-appicon-hover-animation-type="SIMPLE";
|
||||
appicon-margin=8;
|
||||
appicon-padding=4;
|
||||
appicon-style="NORMAL";
|
||||
context-menu-entries="[{\"title\":\"Terminal\",\"cmd\":\"TERMINALSETTINGS\"},{\"title\":\"System monitor\",\"cmd\":\"gnome-system-monitor\"},{\"title\":\"Files\",\"cmd\":\"nautilus\"},{\"title\":\"Extensions\",\"cmd\":\"gnome-extensions-app\"}]";
|
||||
dot-position="TOP";
|
||||
dot-style-focused="METRO";
|
||||
extension-version=72;
|
||||
global-border-radius=0;
|
||||
group-apps=true;
|
||||
hide-overview-on-startup=true;
|
||||
highlight-appicon-hover=false;
|
||||
hotkeys-overlay-combo="TEMPORARILY";
|
||||
intellihide=false;
|
||||
isolate-monitors=true;
|
||||
isolate-workspaces=true;
|
||||
overview-click-to-exit=false;
|
||||
panel-anchors="{\"SAM-0x00000000\":\"MIDDLE\"}";
|
||||
panel-element-positions="{\"SAM-0x00000000\":[{\"element\":\"showAppsButton\",\"visible\":false,\"position\":\"stackedTL\"},{\"element\":\"activitiesButton\",\"visible\":false,\"position\":\"stackedTL\"},{\"element\":\"leftBox\",\"visible\":true,\"position\":\"stackedTL\"},{\"element\":\"taskbar\",\"visible\":true,\"position\":\"stackedTL\"},{\"element\":\"centerBox\",\"visible\":true,\"position\":\"stackedBR\"},{\"element\":\"rightBox\",\"visible\":true,\"position\":\"stackedBR\"},{\"element\":\"dateMenu\",\"visible\":true,\"position\":\"stackedBR\"},{\"element\":\"systemMenu\",\"visible\":true,\"position\":\"stackedBR\"},{\"element\":\"desktopButton\",\"visible\":true,\"position\":\"stackedBR\"}]}";
|
||||
panel-lengths="{\"SAM-0x00000000\":100}";
|
||||
panel-positions="{\"SAM-0x00000000\":\"TOP\"}";
|
||||
panel-side-margins=0;
|
||||
panel-sizes="{\"SAM-0x00000000\":32}";
|
||||
prefs-opened=true;
|
||||
progress-show-count=true;
|
||||
show-apps-icon-file="";
|
||||
show-apps-icon-side-padding=8;
|
||||
show-favorites=true;
|
||||
show-favorites-all-monitors=true;
|
||||
show-running-apps=true;
|
||||
show-showdesktop-hover=true;
|
||||
stockgs-keep-dash=false;
|
||||
stockgs-keep-top-panel=false;
|
||||
stockgs-panelbtn-click-only=false;
|
||||
taskbar-locked=true;
|
||||
trans-bg-color="#000000";
|
||||
trans-dynamic-anim-target=0.8;
|
||||
trans-dynamic-anim-time=300;
|
||||
trans-dynamic-behavior="ALL_WINDOWS";
|
||||
trans-dynamic-distance=1;
|
||||
trans-panel-opacity=0.0;
|
||||
trans-use-custom-bg=true;
|
||||
trans-use-custom-gradient=false;
|
||||
trans-use-custom-opacity=true;
|
||||
trans-use-dynamic-opacity=true;
|
||||
window-preview-title-position="TOP";
|
||||
};
|
||||
|
||||
"org/gnome/shell/extensions/blur-my-shell" = {
|
||||
pipelines = "{\"pipeline_default\": {\"name\": <\"Default\">, \"effects\": <[<{\"type\": <\"native_static_gaussian_blur\">, \"id\": <\"effect_35222615027186\">, \"params\": <{\"unscaled_radius\": <100>, \"brightness\": <0.7>}>}>]>}, \"pipeline_default_rounded\": {\"name\": <\"Default rounded\">, \"effects\": <[<{\"type\": <\"native_static_gaussian_blur\">, \"id\": <\"effect_61989482273055\">, \"params\": <{\"unscaled_radius\": <100>, \"brightness\": <0.7>}>}>, <{\"type\": <\"corner\">, \"id\": <\"effect_88386155746677\">, \"params\": <{\"radius\": <20>, \"corners_bottom\": <true>, \"corners_top\": <true>}>}>]>}}";
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".config/gtk-3.0/bookmarks".text = ''
|
||||
file:///home/typo/Downloads Downloads
|
||||
file:///home/typo/Documents Documents
|
||||
file:///home/typo/Music Music
|
||||
file:///home/typo/Pictures Pictures
|
||||
ftp://typo@typofelho.ddns.net/ Felhő
|
||||
'';
|
||||
|
||||
home.file.".config/gtk-3.0/bookmarks".force = true;
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
#nrs = "sudo nixos-rebuild switch";
|
||||
#nrsu = "sudo nixos-rebuild switch --upgrade";
|
||||
#nixconf = "sudo vim /etc/nixos/configuration.nix";
|
||||
#nixhome = "sudo vim /etc/nixos/home.nix";
|
||||
du = "dust";
|
||||
cat = "bat";
|
||||
ls = "lsd";
|
||||
vi = "vim";
|
||||
};
|
||||
shellInit = "pfetch";
|
||||
};
|
||||
}
|
||||
5
home/hosts/Heracles.nix
Normal file
5
home/hosts/Heracles.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor=",preferred,auto,1.0";
|
||||
};
|
||||
}
|
||||
5
home/hosts/Prometheus.nix
Normal file
5
home/hosts/Prometheus.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor=",preferred,auto,auto";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user