Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99cc802565 | |||
| 4bc97efe7a | |||
| 6260c56bbd | |||
| 0b5d298bc4 | |||
| f7ae712471 | |||
| 5601b1339c | |||
| 2b30fc1a4d | |||
| cd0e4479f7 | |||
| 8ed9ed7b51 | |||
| 42be5edaf1 | |||
| 3040914409 | |||
| c623efd959 | |||
| 002106286a | |||
| 0439a3a70c | |||
| d7fd96b4ae | |||
| 1cc47bea5c | |||
| 2ddb17e9dd | |||
| 9de557705a | |||
| 27f2604ed4 | |||
| c51feeac8a | |||
| 27154a2ad8 | |||
| fc05eb7824 | |||
| dab57c7754 | |||
| 2907927036 | |||
| 3945bc3204 | |||
| f7a84f0531 | |||
| 327ceed460 | |||
| 0c1df548a2 | |||
| 948ac61d8b | |||
| c0d6d4483d | |||
| f6c123e3bf | |||
| 5ecb1594d1 | |||
| 8ce210ad1f | |||
| 2526cc4d63 | |||
| 59ecf03ecf | |||
| 7f6910098d | |||
| 1015048fc5 | |||
| 831f49e8bd | |||
| 8acb99770c | |||
| 7488da102e | |||
| be5e9cce07 | |||
| 0eddfbef58 | |||
| bdb85b6161 | |||
| 64392b695e | |||
| 8896788bfd | |||
| eec600d1d0 | |||
| b31791b9ef | |||
| 8de280d7e5 | |||
| 8c8a6121bc | |||
| f1296e7675 |
+4
-5
@@ -1,17 +1,15 @@
|
|||||||
keys:
|
keys:
|
||||||
- &primary age1ee5udznhadk6m7jtglu4709rep080yjyd2ukzdl8jma4mm92y3psv0slpg
|
- &primary age1ee5udznhadk6m7jtglu4709rep080yjyd2ukzdl8jma4mm92y3psv0slpg
|
||||||
- &aspi-ssh age1q8lc5340gz5xw2f57nglrss68wv0j0hf36py2pdtrl6ky3yrq9qqk0njr4
|
- &aspi-ssh age1q8lc5340gz5xw2f57nglrss68wv0j0hf36py2pdtrl6ky3yrq9qqk0njr4
|
||||||
- &pianonix-ssh age1tguyu2yd5xv8rgjjl50cq6dq5rr7umqgv098dgre4u9wyj30ea7sexw62c
|
|
||||||
- &builder-ssh age1kw4kmdm45zprvdkrrpvgq966l7585vhusmum083qlwnr0xxgd3uqatcyja
|
- &builder-ssh age1kw4kmdm45zprvdkrrpvgq966l7585vhusmum083qlwnr0xxgd3uqatcyja
|
||||||
- &kardorf-ssh age15lxw97z03q40xrdscnxqqugh5ky5aqrerg2t2rphkcqm6rnllurq8v98q5
|
- &kardorf-ssh age15lxw97z03q40xrdscnxqqugh5ky5aqrerg2t2rphkcqm6rnllurq8v98q5
|
||||||
|
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: hosts/common/secrets.yaml$
|
- path_regex: hosts/secrets-common.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *primary
|
||||||
- *aspi-ssh
|
- *aspi-ssh
|
||||||
- *pianonix-ssh
|
|
||||||
- *kardorf-ssh
|
- *kardorf-ssh
|
||||||
|
|
||||||
- path_regex: hosts/builder/secrets.yaml$
|
- path_regex: hosts/builder/secrets.yaml$
|
||||||
@@ -20,8 +18,9 @@ creation_rules:
|
|||||||
- *primary
|
- *primary
|
||||||
- *builder-ssh
|
- *builder-ssh
|
||||||
|
|
||||||
- path_regex: hosts/pianonix/secrets*
|
- path_regex: features-nixos/optional/k9s/kubeconfig.secret.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *primary
|
||||||
- *pianonix-ssh
|
- *aspi-ssh
|
||||||
|
- *kardorf-ssh
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
|
|
||||||
in {
|
|
||||||
# Do not make conditional, just toggle things on and off
|
|
||||||
imports = [inputs.nix-colors.homeManagerModules.default]; # TODO: what does this do
|
|
||||||
|
|
||||||
# home.sessionVariables.GTK_THEME = "Catppuccin-Mocha-Compact-Blue-dark";
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = inputs.nix-colors.colorschemes.${config.colorscheme.name}.slug;
|
|
||||||
package = gtkThemeFromScheme {
|
|
||||||
scheme = inputs.nix-colors.colorschemes.${config.colorscheme.name};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
iconTheme = {
|
|
||||||
name = "Papirus-Dark";
|
|
||||||
package = pkgs.papirus-icon-theme;
|
|
||||||
};
|
|
||||||
cursorTheme = {
|
|
||||||
package = pkgs.apple-cursor;
|
|
||||||
name = "macOS";
|
|
||||||
size = 24;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
||||||
}
|
|
||||||
@@ -1,452 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name})
|
|
||||||
palette
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
# inputs.hyprland.homeManagerModules.default
|
|
||||||
./waybar
|
|
||||||
./wofi
|
|
||||||
./mako
|
|
||||||
# ./hyprlock
|
|
||||||
./wlogout
|
|
||||||
../gammastep
|
|
||||||
|
|
||||||
./swayidle.nix
|
|
||||||
./swaylock.nix
|
|
||||||
./zathura.nix
|
|
||||||
./waypipe.nix
|
|
||||||
|
|
||||||
# ./hyprbars.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.portal = {
|
|
||||||
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
|
||||||
config.hyprland = {
|
|
||||||
default = [
|
|
||||||
"wlr"
|
|
||||||
"gtk"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.imv.enable = true; # TODO: what is that
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
hyprpicker
|
|
||||||
brightnessctl
|
|
||||||
frajul.hyprshot-gui
|
|
||||||
frajul.wl-ocr
|
|
||||||
|
|
||||||
wf-recorder
|
|
||||||
wl-clipboard
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "toggle-screen-mirroring" (
|
|
||||||
builtins.readFile ./toggle-screen-mirroring.sh
|
|
||||||
))
|
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "correct-workspace-locations" (
|
|
||||||
lib.concatStringsSep "\n" (
|
|
||||||
builtins.concatLists (
|
|
||||||
map (
|
|
||||||
monitor:
|
|
||||||
map (ws: "hyprctl dispatch moveworkspacetomonitor ${ws} ${monitor.name}") monitor.workspaces
|
|
||||||
)
|
|
||||||
config.monitors
|
|
||||||
)
|
|
||||||
)
|
|
||||||
))
|
|
||||||
];
|
|
||||||
|
|
||||||
services.cliphist = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
MOZ_ENABLE_WAYLAND = 1;
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
LIBSEAT_BACKEND = "logind";
|
|
||||||
};
|
|
||||||
|
|
||||||
# services.hypridle = {
|
|
||||||
# enable = true;
|
|
||||||
# settings = {
|
|
||||||
# general = {
|
|
||||||
# after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
||||||
# ignore_dbus_inhibit = false;
|
|
||||||
# lock_cmd = "hyprlock";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# listener = [
|
|
||||||
# {
|
|
||||||
# timeout = 300; # 5min
|
|
||||||
# on-timeout = "brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
|
||||||
# on-resume = "brightnessctl -r"; # monitor backlight restore.
|
|
||||||
# }
|
|
||||||
|
|
||||||
# {
|
|
||||||
# timeout = 360; # 6min
|
|
||||||
# on-timeout = "hyprlock"; # lock screen when timeout has passed
|
|
||||||
# }
|
|
||||||
|
|
||||||
# {
|
|
||||||
# timeout = 600; # 10min
|
|
||||||
# on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
|
|
||||||
# on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# services.hypridle.enable = true; # can be configured
|
|
||||||
|
|
||||||
services.network-manager-applet.enable = true;
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
# Whether to enable Hyprland wayland compositor
|
|
||||||
enable = true;
|
|
||||||
# package = config.lib.nixGL.wrap (
|
|
||||||
# pkgs.hyprland.override {
|
|
||||||
# # nixgl needed?
|
|
||||||
# wrapRuntimeDeps = false;
|
|
||||||
# }
|
|
||||||
# );
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
enable = true;
|
|
||||||
# Same as default, but stop graphical-session too
|
|
||||||
extraCommands = lib.mkBefore [
|
|
||||||
"systemctl --user stop graphical-session.target"
|
|
||||||
"systemctl --user start hyprland-session.target"
|
|
||||||
];
|
|
||||||
variables = [
|
|
||||||
"DISPLAY"
|
|
||||||
"HYPRLAND_INSTANCE_SIGNATURE"
|
|
||||||
"WAYLAND_DISPLAY"
|
|
||||||
"XDG_CURRENT_DESKTOP"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# package = inputs.hyprland.packages."${pkgs.system}".hyprland; # does only work with nixos-unstable
|
|
||||||
|
|
||||||
# The hyprland package to use (simplifies use of plugins)
|
|
||||||
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
|
||||||
# Whether to enable XWayland
|
|
||||||
xwayland.enable = true;
|
|
||||||
|
|
||||||
# Optional
|
|
||||||
# Whether to enable hyprland-session.target on hyprland startup
|
|
||||||
# systemd.enable = true;
|
|
||||||
# Make PATH available to systemd services
|
|
||||||
# systemd.variables = [ "--all" ];
|
|
||||||
|
|
||||||
plugins = [
|
|
||||||
# inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars # does only work with nixos-unstable
|
|
||||||
# hyprlandPlugins.hyprbars
|
|
||||||
];
|
|
||||||
|
|
||||||
submaps = {
|
|
||||||
"resize".settings = {
|
|
||||||
binde = [
|
|
||||||
", right, resizeactive, 20"
|
|
||||||
", left, resizeactive, -20 0"
|
|
||||||
", up, resizeactive, 0 -20"
|
|
||||||
", down, resizeactive, 0 20"
|
|
||||||
", l, resizeactive, 20"
|
|
||||||
", h, resizeactive, -20 0"
|
|
||||||
", k, resizeactive, 0 -20"
|
|
||||||
", j, resizeactive, 0 20"
|
|
||||||
];
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
", q, submap, reset"
|
|
||||||
", escape, submap, reset"
|
|
||||||
|
|
||||||
", catchall, submap, reset" # make any other keypress cancel the submap
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"open, reset".settings = {
|
|
||||||
bind = [
|
|
||||||
", e, exec, emacs"
|
|
||||||
", m, exec, open-messaging"
|
|
||||||
", b, exec, firefox"
|
|
||||||
|
|
||||||
", catchall, submap, reset" # make any other keypress cancel the submap
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
|
|
||||||
# Environment variables programs like emacs have access to
|
|
||||||
env = "TERMINAL,${config.terminal}";
|
|
||||||
|
|
||||||
# Monitors
|
|
||||||
monitor = ",preferred,auto,1";
|
|
||||||
|
|
||||||
# Autostart
|
|
||||||
exec-once = [
|
|
||||||
(lib.getExe pkgs.firefox)
|
|
||||||
(lib.getExe pkgs.waybar)
|
|
||||||
];
|
|
||||||
|
|
||||||
# Look and Feel
|
|
||||||
general = {
|
|
||||||
gaps_in = 5;
|
|
||||||
gaps_out = 5;
|
|
||||||
|
|
||||||
layout = "dwindle";
|
|
||||||
|
|
||||||
# "col.active_border" = "0xff${palette.base0C} 0xff${palette.base0D} 270deg";
|
|
||||||
# "col.inactive_border" = "0xff${palette.base00}";
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
# power saving
|
|
||||||
blur.enabled = false;
|
|
||||||
# power saving
|
|
||||||
shadow.enabled = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Dwindle layout
|
|
||||||
dwindle = {
|
|
||||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true; # You probably want this
|
|
||||||
smart_split = false;
|
|
||||||
smart_resizing = false;
|
|
||||||
force_split = 2;
|
|
||||||
# no_gaps_when_only = 2; # with border
|
|
||||||
};
|
|
||||||
|
|
||||||
# Master layout
|
|
||||||
master = {
|
|
||||||
new_status = "slave";
|
|
||||||
# no_gaps_when_only = 2; # with border
|
|
||||||
mfact = 0.5; # Do not make master bigger
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"windows,1,3,default,slide"
|
|
||||||
"fade,1,3,default"
|
|
||||||
"layers,1,3,default,slide"
|
|
||||||
"border,1,3,default"
|
|
||||||
"workspaces,1,3,default,slide"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
exec = [
|
|
||||||
"hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}"
|
|
||||||
"correct-workspace-locations"
|
|
||||||
];
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
# disable auto polling for config file changes
|
|
||||||
disable_autoreload = true;
|
|
||||||
|
|
||||||
force_default_wallpaper = 0;
|
|
||||||
|
|
||||||
vfr = true; # power saving
|
|
||||||
};
|
|
||||||
|
|
||||||
cursor = {
|
|
||||||
no_hardware_cursors = 1; # disable hardware cursors to fix tearing on kardorf
|
|
||||||
};
|
|
||||||
|
|
||||||
render = {
|
|
||||||
# we do, in fact, want direct scanout
|
|
||||||
direct_scanout = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Input
|
|
||||||
input = {
|
|
||||||
kb_layout = "de";
|
|
||||||
natural_scroll = false;
|
|
||||||
follow_mouse = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Window rules
|
|
||||||
windowrulev2 = [
|
|
||||||
"suppressevent maximize, class:.*"
|
|
||||||
"workspace 1, class:firefox"
|
|
||||||
"workspace 8, class:Zotero"
|
|
||||||
"workspace 9, class:nheko"
|
|
||||||
"workspace 9, class:Element"
|
|
||||||
"workspace 9, class:discord"
|
|
||||||
"workspace 9, class:org.telegram.desktop"
|
|
||||||
"workspace 10, class:thunderbird"
|
|
||||||
"float, class:qalculate-gtk"
|
|
||||||
"tile, class:MATLAB, title:MATLAB"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Workspace rules
|
|
||||||
workspace =
|
|
||||||
[
|
|
||||||
# smart gaps (none when only one window in workspace)
|
|
||||||
"w[t1], gapsin:0, gapsout:0, border:1"
|
|
||||||
"w[tg1], gapsin:0, gapsout:0, border:1"
|
|
||||||
"f[1], gapsin:0, gapsout:0, border:1"
|
|
||||||
]
|
|
||||||
# builds like "1, e-DP1" "2, HDMI-1" etc.
|
|
||||||
++ builtins.concatLists (
|
|
||||||
map (monitor: map (ws: "${ws}, monitor:${monitor.name}") monitor.workspaces) config.monitors
|
|
||||||
);
|
|
||||||
|
|
||||||
# Mouse binds
|
|
||||||
bindm = [
|
|
||||||
"$mod, mouse:272, movewindow" # leftclick
|
|
||||||
"$mod, mouse:273, resizewindow" # rightclick
|
|
||||||
];
|
|
||||||
|
|
||||||
# binds
|
|
||||||
bind =
|
|
||||||
[
|
|
||||||
# compositor commands
|
|
||||||
#
|
|
||||||
#
|
|
||||||
"$mod, R, submap, resize"
|
|
||||||
"$mod, O, submap, open"
|
|
||||||
#
|
|
||||||
|
|
||||||
"$mod, SPACE, focuswindow, floating"
|
|
||||||
"$mod SHIFT, SPACE, togglefloating,"
|
|
||||||
"$mod, F, fullscreen,"
|
|
||||||
"$mod, X, killactive,"
|
|
||||||
|
|
||||||
"$mod, -, togglesplit," # dwindle
|
|
||||||
|
|
||||||
# opening applications
|
|
||||||
"$mod, D, exec, wofi --show drun,run"
|
|
||||||
"$mod, E, exec, pcmanfm"
|
|
||||||
"$mod, Return, exec, ${config.terminal}"
|
|
||||||
"$mod, B, exec, firefox"
|
|
||||||
"$mod, C, exec, qalculate-gtk"
|
|
||||||
|
|
||||||
# other commands
|
|
||||||
"$mod SHIFT, E, exec, wlogout -p layer-shell"
|
|
||||||
"$mod, Escape, exec, wlogout -p layer-shell"
|
|
||||||
"$mod SHIFT, R, exec, hyprctl reload"
|
|
||||||
"$mod, Print, exec, hyprshot-gui"
|
|
||||||
", Print, exec, hyprshot-gui"
|
|
||||||
"$mod, P, exec, toggle-screen-mirroring; correct-workspace-locations"
|
|
||||||
|
|
||||||
# "$mod SHIFT, E, exec, pkill Hyprland"
|
|
||||||
# "$mod, G, togglegroup,"
|
|
||||||
# "$mod SHIFT, N, changegroupactive, f"
|
|
||||||
# "$mod SHIFT, P, changegroupactive, b"
|
|
||||||
# "$mod ALT, ,resizeactive,"
|
|
||||||
|
|
||||||
# media keys
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
|
||||||
", XF86AudioPause, exec, playerctl pause"
|
|
||||||
", XF86AudioStop, exec, playerctl stop"
|
|
||||||
", XF86AudioNext, exec, playerctl next"
|
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
", XF86MonBrightnessUp, exec, brightnessctl --class backlight set 5%+"
|
|
||||||
", XF86MonBrightnessDown, exec, brightnessctl --class backlight set 5%-"
|
|
||||||
|
|
||||||
# move focus
|
|
||||||
"$mod, left, movefocus, l"
|
|
||||||
"$mod, H, movefocus, l"
|
|
||||||
"$mod, right, movefocus, r"
|
|
||||||
"$mod, L, movefocus, r"
|
|
||||||
"$mod, up, movefocus, u"
|
|
||||||
"$mod, K, movefocus, u"
|
|
||||||
"$mod, down, movefocus, d"
|
|
||||||
"$mod, J, movefocus, d"
|
|
||||||
|
|
||||||
# move window
|
|
||||||
"$mod SHIFT, left, movewindow, l"
|
|
||||||
"$mod SHIFT, H, movewindow, l"
|
|
||||||
"$mod SHIFT, right, movewindow, r"
|
|
||||||
"$mod SHIFT, L, movewindow, r"
|
|
||||||
"$mod SHIFT, up, movewindow, u"
|
|
||||||
"$mod SHIFT, K, movewindow, u"
|
|
||||||
"$mod SHIFT, down, movewindow, d"
|
|
||||||
"$mod SHIFT, J, movewindow, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mod, 1, workspace, 1"
|
|
||||||
"$mod, 2, workspace, 2"
|
|
||||||
"$mod, 3, workspace, 3"
|
|
||||||
"$mod, 4, workspace, 4"
|
|
||||||
"$mod, 5, workspace, 5"
|
|
||||||
"$mod, 6, workspace, 6"
|
|
||||||
"$mod, 7, workspace, 7"
|
|
||||||
"$mod, 8, workspace, 8"
|
|
||||||
"$mod, 9, workspace, 9"
|
|
||||||
"$mod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$mod SHIFT, 1, movetoworkspace, 1"
|
|
||||||
"$mod SHIFT, 2, movetoworkspace, 2"
|
|
||||||
"$mod SHIFT, 3, movetoworkspace, 3"
|
|
||||||
"$mod SHIFT, 4, movetoworkspace, 4"
|
|
||||||
"$mod SHIFT, 5, movetoworkspace, 5"
|
|
||||||
"$mod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace without following with mainMod + CTRL + [0-9]
|
|
||||||
"$mod CTRL, 1, movetoworkspacesilent, 1"
|
|
||||||
"$mod CTRL, 2, movetoworkspacesilent, 2"
|
|
||||||
"$mod CTRL, 3, movetoworkspacesilent, 3"
|
|
||||||
"$mod CTRL, 4, movetoworkspacesilent, 4"
|
|
||||||
"$mod CTRL, 5, movetoworkspacesilent, 5"
|
|
||||||
"$mod CTRL, 6, movetoworkspacesilent, 6"
|
|
||||||
"$mod CTRL, 7, movetoworkspacesilent, 7"
|
|
||||||
"$mod CTRL, 8, movetoworkspacesilent, 8"
|
|
||||||
"$mod CTRL, 9, movetoworkspacesilent, 9"
|
|
||||||
"$mod CTRL, 0, movetoworkspacesilent, 10"
|
|
||||||
]
|
|
||||||
++
|
|
||||||
# Screen lock
|
|
||||||
(
|
|
||||||
let
|
|
||||||
swaylock = lib.getExe config.programs.swaylock.package;
|
|
||||||
in
|
|
||||||
lib.optionals config.programs.swaylock.enable [
|
|
||||||
"$mod,TAB,exec,${swaylock} --daemonize"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
++
|
|
||||||
# Notification manager
|
|
||||||
(
|
|
||||||
let
|
|
||||||
makoctl = lib.getExe' config.services.mako.package "makoctl";
|
|
||||||
in
|
|
||||||
lib.optionals config.services.mako.enable [
|
|
||||||
"$mod,w,exec,${makoctl} dismiss"
|
|
||||||
"$mod SHIFT,W,exec,${makoctl} restore"
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
# plugin = {
|
|
||||||
# hyprbars = {
|
|
||||||
# bar_text_size = 10;
|
|
||||||
# bar_height = 16;
|
|
||||||
# bar_text_font = "Ubuntu Nerd Font";
|
|
||||||
# bar_precedence_over_border = true;
|
|
||||||
# bar_color = "rgb(${palette.base01})";
|
|
||||||
|
|
||||||
# hyprbars-button = [ "rgb(${palette.base03}), 14, , hyprctl dispatch killactive" ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
options,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name})
|
|
||||||
palette
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
programs.hyprlock.enable = true;
|
|
||||||
programs.hyprlock.settings = {
|
|
||||||
general = {
|
|
||||||
disable_loading_bar = true;
|
|
||||||
hide_cursor = true;
|
|
||||||
ignore_empty_input = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
background = [
|
|
||||||
{
|
|
||||||
color = "#${palette.base00}";
|
|
||||||
# path = "screenshot";
|
|
||||||
# blur_passes = 3;
|
|
||||||
# blur_size = 8;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
input-field = [
|
|
||||||
{
|
|
||||||
size = "200, 50";
|
|
||||||
position = "0, -80";
|
|
||||||
monitor = "";
|
|
||||||
dots_center = true;
|
|
||||||
fade_on_empty = false;
|
|
||||||
font_color = "#${palette.base0B}";
|
|
||||||
inner_color = "#${palette.base01}";
|
|
||||||
outer_color = "#${palette.base05}";
|
|
||||||
outline_thickness = 5;
|
|
||||||
placeholder_text = "Password...";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
options,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name})
|
|
||||||
palette
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [libnotify];
|
|
||||||
|
|
||||||
services.mako = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
defaultTimeout = "5000"; # milliseconds, can be overwritten by notification sender
|
|
||||||
backgroundColor = "#${palette.base00}";
|
|
||||||
textColor = "#${palette.base05}";
|
|
||||||
borderColor = "#${palette.base0D}";
|
|
||||||
progressColor = "over #${palette.base02}";
|
|
||||||
extraConfig = ''
|
|
||||||
[urgency=high]
|
|
||||||
border-color=#${palette.base09}
|
|
||||||
# '';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
#! /usr/bin/env sh
|
|
||||||
|
|
||||||
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use
|
|
||||||
|
|
||||||
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled
|
|
||||||
# Additionally it's called with a keybind to switch between a laptop monitor and an external display
|
|
||||||
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible
|
|
||||||
#
|
|
||||||
# Relevant info:
|
|
||||||
# - hyprctl monitors: identifies currently enabled monitors
|
|
||||||
# - hyprctl monitors all: identifies ALL connected monitors - including those not in use
|
|
||||||
#
|
|
||||||
# Suggested use:
|
|
||||||
# Add this line somewhere after the regular monitor configuration in hyprland.conf:
|
|
||||||
# exec = /path/to/hyprland-monitors-toggle.sh
|
|
||||||
# Add a keybind to run this script on demand:
|
|
||||||
# bind =,SomeKeyHere, exec, /path/to/hyprland-monitors-toggle.sh
|
|
||||||
|
|
||||||
#move_all_workspaces_to_monitor() {
|
|
||||||
# TARGET_MONITOR="$1"
|
|
||||||
|
|
||||||
# hyprctl workspaces | grep ^workspace | cut --delimiter ' ' --fields 3 | xargs -I '{}' hyprctl dispatch moveworkspacetomonitor '{}' "$TARGET_MONITOR"
|
|
||||||
|
|
||||||
# # Previous approach
|
|
||||||
# #hyprctl swapactiveworkspaces $EXTERNAL_MONITOR $INTERNAL_MONITOR
|
|
||||||
#}
|
|
||||||
|
|
||||||
# TODO: Detect these instead of hardcoding them
|
|
||||||
INTERNAL_MONITOR="eDP-1"
|
|
||||||
EXTERNAL_MONITOR="HDMI-A-1"
|
|
||||||
|
|
||||||
# NUM_MONITORS=$(hyprctl monitors all | grep --count Monitor)
|
|
||||||
# NUM_MONITORS_ACTIVE=$(hyprctl monitors | grep --count Monitor)
|
|
||||||
|
|
||||||
# Make sure all
|
|
||||||
# if [ "$NUM_MONITORS_ACTIVE" -eq 1 ]; then
|
|
||||||
# move_all_workspaces_to_monitor $INTERNAL_MONITOR
|
|
||||||
# exit
|
|
||||||
# fi
|
|
||||||
|
|
||||||
MIRROR_SETTING=$(hyprctl monitors all -j | jq -r '.[] | select(.name == "HDMI-A-1") | .mirrorOf')
|
|
||||||
|
|
||||||
# # For dynamically toggling which monitor is active later via a keybind
|
|
||||||
# if [ "$NUM_MONITORS" -gt 1 ]; then # Handling multiple monitors
|
|
||||||
# if hyprctl monitors | cut --delimiter ' ' --fields 2 | grep --quiet ^$EXTERNAL_MONITOR; then
|
|
||||||
# hyprctl keyword monitor $INTERNAL_MONITOR,preferred,0x0,1
|
|
||||||
# move_all_workspaces_to_monitor $INTERNAL_MONITOR
|
|
||||||
# hyprctl keyword monitor "$EXTERNAL_MONITOR, disable"
|
|
||||||
# else
|
|
||||||
# hyprctl keyword monitor $EXTERNAL_MONITOR,preferred,0x0,1
|
|
||||||
# move_all_workspaces_to_monitor $EXTERNAL_MONITOR
|
|
||||||
# hyprctl keyword monitor "$INTERNAL_MONITOR, disable"
|
|
||||||
# fi
|
|
||||||
# else # If the external monitor is disconnected without running this script first, it might become the case that no monitor is on - therefore turn on the laptop monitor!
|
|
||||||
# hyprctl keyword monitor $INTERNAL_MONITOR,preferred,0x0,1
|
|
||||||
# move_all_workspaces_to_monitor $INTERNAL_MONITOR
|
|
||||||
# fi
|
|
||||||
|
|
||||||
echo setting:
|
|
||||||
echo $MIRROR_SETTING
|
|
||||||
if [ "$MIRROR_SETTING" = "none" ]; then
|
|
||||||
echo "mirroring..."
|
|
||||||
hyprctl keyword monitor "$EXTERNAL_MONITOR, preferred, auto, 1, mirror, $INTERNAL_MONITOR"
|
|
||||||
else
|
|
||||||
hyprctl keyword monitor "$EXTERNAL_MONITOR, disable" # shortly disable monitor so waybar recognizes the new monitor again # TODO: find better solution
|
|
||||||
hyprctl keyword monitor "$EXTERNAL_MONITOR, preferred, auto, 1"
|
|
||||||
fi
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
options,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name})
|
|
||||||
palette
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [wlogout];
|
|
||||||
|
|
||||||
# xdg.configFile."wlogout/style.css".text = ''
|
|
||||||
# * {
|
|
||||||
# all: unset;
|
|
||||||
# font-family: JetBrains Mono Nerd Font;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# window {
|
|
||||||
# background-color: #${palette.base00};
|
|
||||||
# }
|
|
||||||
|
|
||||||
# button {
|
|
||||||
# color: #${palette.base01};
|
|
||||||
# font-size: 64px;
|
|
||||||
# background-color: rgba(0,0,0,0);
|
|
||||||
# outline-style: none;
|
|
||||||
# margin: 5px;
|
|
||||||
# }
|
|
||||||
|
|
||||||
# button:focus, button:active, button:hover {
|
|
||||||
# color: #${palette.base0D};
|
|
||||||
# transition: ease 0.4s;
|
|
||||||
# }
|
|
||||||
# '';
|
|
||||||
}
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
{
|
|
||||||
options,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
|
||||||
(inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name})
|
|
||||||
palette
|
|
||||||
;
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [wofi];
|
|
||||||
|
|
||||||
xdg.configFile."wofi/config".source = ./config;
|
|
||||||
xdg.configFile."wofi/style.css".text = ''
|
|
||||||
window {
|
|
||||||
margin: 5px;
|
|
||||||
border: 5px solid #181926;
|
|
||||||
background-color: #${palette.base00};
|
|
||||||
border-radius: 15px;
|
|
||||||
font-family: "JetBrainsMono";
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#input {
|
|
||||||
all: unset;
|
|
||||||
min-height: 36px;
|
|
||||||
padding: 4px 10px;
|
|
||||||
margin: 4px;
|
|
||||||
border: none;
|
|
||||||
color: #${palette.base05};
|
|
||||||
font-weight: bold;
|
|
||||||
background-color: #${palette.base01};
|
|
||||||
outline: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
margin: 10px;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#inner-box {
|
|
||||||
margin: 4px;
|
|
||||||
padding: 10px;
|
|
||||||
font-weight: bold;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#outer-box {
|
|
||||||
margin: 0px;
|
|
||||||
padding: 3px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
border: 5px solid #${palette.base01};
|
|
||||||
}
|
|
||||||
|
|
||||||
#scroll {
|
|
||||||
margin-top: 5px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#text:selected {
|
|
||||||
color: #${palette.base01};
|
|
||||||
margin: 0px 0px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry {
|
|
||||||
margin: 0px 0px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry:selected {
|
|
||||||
margin: 0px 0px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
background: #${palette.base0D};
|
|
||||||
background-size: 400% 400%;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{config, ...}: let
|
|
||||||
inherit (config.colorscheme) colors;
|
|
||||||
in {
|
|
||||||
programs.zathura = {
|
|
||||||
enable = true;
|
|
||||||
options = {
|
|
||||||
selection-clipboard = "clipboard";
|
|
||||||
# TODO fix
|
|
||||||
# font = "${config.fontProfiles.regular.name} ${toString config.fontProfiles.regular.size}";
|
|
||||||
# recolor = true;
|
|
||||||
# default-bg = "${colors.surface}";
|
|
||||||
# default-fg = "${colors.surface_bright}";
|
|
||||||
# statusbar-bg = "${colors.surface_container}";
|
|
||||||
# statusbar-fg = "${colors.on_surface_variant}";
|
|
||||||
# inputbar-bg = "${colors.surface}";
|
|
||||||
# inputbar-fg = "${colors.on_secondary}";
|
|
||||||
# notification-bg = "${colors.surface}";
|
|
||||||
# notification-fg = "${colors.on_secondary}";
|
|
||||||
# notification-error-bg = "${colors.error}";
|
|
||||||
# notification-error-fg = "${colors.on_error}";
|
|
||||||
# notification-warning-bg = "${colors.error}";
|
|
||||||
# notification-warning-fg = "${colors.on_error}";
|
|
||||||
# highlight-color = "${colors.tertiary}";
|
|
||||||
# highlight-active-color = "${colors.secondary}";
|
|
||||||
# completion-bg = "${colors.surface_bright}";
|
|
||||||
# completion-fg = "${colors.on_surface}";
|
|
||||||
# completions-highlight-bg = "${colors.secondary}";
|
|
||||||
# completions-highlight-fg = "${colors.on_secondary}";
|
|
||||||
# recolor-lightcolor = "${colors.surface}";
|
|
||||||
# recolor-darkcolor = "${colors.inverse_surface}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
system.hydraAutoUpgrade = {
|
|
||||||
# Only enable if not dirty
|
|
||||||
enable = inputs.self ? rev;
|
|
||||||
dates = "*:0/10"; # Every 10 minutes
|
|
||||||
instance = "http://hydra.julian-mutter.de";
|
|
||||||
project = "dotfiles";
|
|
||||||
jobset = "main";
|
|
||||||
job = "hosts.${config.networking.hostName}";
|
|
||||||
oldFlakeRef = "self";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
# Common config for all hosts
|
|
||||||
{
|
|
||||||
flake.nixosModules.base = {
|
|
||||||
inputs,
|
|
||||||
outputs,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
# Replaces the (modulesPath + "/installer/scan/not-detected.nix") from default hardware-configuration.nix
|
|
||||||
# Enables non-free firmware
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
|
|
||||||
# Networking
|
|
||||||
networking.networkmanager = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs; [
|
|
||||||
networkmanager-openconnect
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services.resolved.enable = false;
|
|
||||||
# MDNS Taken by avahi
|
|
||||||
# networking.networkmanager.dns = "none";
|
|
||||||
networking.nameservers = lib.mkDefault [
|
|
||||||
"1.1.1.1"
|
|
||||||
"8.8.8.8"
|
|
||||||
];
|
|
||||||
|
|
||||||
# HM module
|
|
||||||
home-manager.useGlobalPkgs = true; # hm module uses the pkgs of the nixos config
|
|
||||||
home-manager.backupFileExtension = "hm-backup"; # backup conflicting files. So hm activation never fails
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
inherit inputs outputs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {
|
|
||||||
programs.fish = {
|
|
||||||
enable = true;
|
|
||||||
vendor = {
|
|
||||||
completions.enable = true;
|
|
||||||
config.enable = true;
|
|
||||||
functions.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "de_DE.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
||||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
||||||
LC_MONETARY = "de_DE.UTF-8";
|
|
||||||
LC_NAME = "de_DE.UTF-8";
|
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
|
||||||
LC_PAPER = "de_DE.UTF-8";
|
|
||||||
LC_TELEPHONE = "de_DE.UTF-8";
|
|
||||||
LC_TIME = "de_DE.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Keymap
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "de";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {outputs, ...}: {
|
|
||||||
# Apply overlays
|
|
||||||
nixpkgs = {
|
|
||||||
# TODO: apply this to hm and nixos without duplicate code
|
|
||||||
overlays = builtins.attrValues outputs.overlays;
|
|
||||||
config = {
|
|
||||||
nvidia.acceptLicense = true;
|
|
||||||
allowUnfree = true;
|
|
||||||
allowUnfreePredicate = _: true; # TODO: what is this
|
|
||||||
warn-dirty = false;
|
|
||||||
permittedInsecurePackages = [
|
|
||||||
"olm-3.2.16"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# optimize at every build, slows down builds
|
|
||||||
# better to do optimise.automatic for regular optimising
|
|
||||||
# nix.settings.auto-optimise-store = lib.mkDefault true;
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
"ca-derivations"
|
|
||||||
];
|
|
||||||
# warn-dirty = false;
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
persistent = true;
|
|
||||||
};
|
|
||||||
nix.optimise = {
|
|
||||||
automatic = true;
|
|
||||||
dates = ["weekly"]; # Optional; allows customizing optimisation schedule
|
|
||||||
persistent = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
|
||||||
|
|
||||||
# TODO: is this useful?, what does it do?
|
|
||||||
# nix.settings.flake-registry = ""; # Disable global flake registry
|
|
||||||
# Add each flake input as a registry and nix_path
|
|
||||||
# registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
|
||||||
# nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {pkgs, ...}: {
|
|
||||||
# Packages needed as root
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
htop
|
|
||||||
mc
|
|
||||||
gparted-xhost # needs to be installed as system package so it can be actually opened
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.base = {
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
isEd25519 = k: k.type == "ed25519";
|
|
||||||
getKeyPath = k: k.path;
|
|
||||||
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
|
||||||
in {
|
|
||||||
imports = [inputs.sops-nix.nixosModules.sops];
|
|
||||||
|
|
||||||
sops.age = {
|
|
||||||
sshKeyPaths = map getKeyPath keys;
|
|
||||||
|
|
||||||
# TODO: remove? only rely on ssh or pgp keys (e.g. ubikey like misterio is using!!!)
|
|
||||||
# keyFile = "/home/julian/.config/sops/age/keys.txt";
|
|
||||||
# Generate key if none of the above worked. With this, building will still work, just without secrets
|
|
||||||
generateKey = false; # TODO: building should not work without secrets!?
|
|
||||||
};
|
|
||||||
|
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
system.hydraAutoUpgrade = {
|
||||||
|
# Only enable if not dirty
|
||||||
|
enable = inputs.self ? rev;
|
||||||
|
dates = "*:0/10"; # Every 10 minutes
|
||||||
|
instance = "http://hydra.julian-mutter.de";
|
||||||
|
project = "dotfiles";
|
||||||
|
jobset = "main";
|
||||||
|
job = "hosts.${config.networking.hostName}";
|
||||||
|
oldFlakeRef = "self";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
# Common config for all hosts
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
outputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./fish.nix # fish for admin
|
||||||
|
./locale.nix
|
||||||
|
./nix.nix
|
||||||
|
./sops.nix
|
||||||
|
./root.nix
|
||||||
|
./stylix.nix
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
]
|
||||||
|
++ (builtins.attrValues outputs.nixosModules);
|
||||||
|
|
||||||
|
# Replaces the (modulesPath + "/installer/scan/not-detected.nix") from default hardware-configuration.nix
|
||||||
|
# Enables non-free firmware
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
|
# Networking
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
plugins = with pkgs; [
|
||||||
|
networkmanager-openconnect
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.resolved.enable = false;
|
||||||
|
# MDNS Taken by avahi
|
||||||
|
# networking.networkmanager.dns = "none";
|
||||||
|
networking.nameservers = lib.mkDefault [
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
|
||||||
|
# HM module
|
||||||
|
home-manager.useGlobalPkgs = true; # hm module uses the pkgs of the nixos config
|
||||||
|
home-manager.backupFileExtension = "hm-backup"; # backup conflicting files. So hm activation never fails
|
||||||
|
home-manager.extraSpecialArgs = {
|
||||||
|
inherit inputs outputs;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
programs.fish = {
|
||||||
|
enable = true;
|
||||||
|
vendor = {
|
||||||
|
completions.enable = true;
|
||||||
|
config.enable = true;
|
||||||
|
functions.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "de_DE.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||||
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||||
|
LC_MONETARY = "de_DE.UTF-8";
|
||||||
|
LC_NAME = "de_DE.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "de_DE.UTF-8";
|
||||||
|
LC_TELEPHONE = "de_DE.UTF-8";
|
||||||
|
LC_TIME = "de_DE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Keymap
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
console.keyMap = "de";
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Berlin";
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{outputs, ...}: {
|
||||||
|
# Apply overlays
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = builtins.attrValues outputs.overlays;
|
||||||
|
config = {
|
||||||
|
nvidia.acceptLicense = true;
|
||||||
|
allowUnfree = true;
|
||||||
|
allowUnfreePredicate = _: true; # TODO: what is this
|
||||||
|
warn-dirty = false;
|
||||||
|
permittedInsecurePackages = [
|
||||||
|
"olm-3.2.16"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# optimize at every build, slows down builds
|
||||||
|
# better to do optimise.automatic for regular optimising
|
||||||
|
# nix.settings.auto-optimise-store = lib.mkDefault true;
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
"ca-derivations"
|
||||||
|
];
|
||||||
|
# warn-dirty = false;
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
persistent = true;
|
||||||
|
};
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
dates = ["weekly"]; # Optional; allows customizing optimisation schedule
|
||||||
|
persistent = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
|
# TODO: is this useful?, what does it do?
|
||||||
|
# nix.settings.flake-registry = ""; # Disable global flake registry
|
||||||
|
# Add each flake input as a registry and nix_path
|
||||||
|
# registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||||
|
# nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
# Packages needed as root
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
htop
|
||||||
|
mc
|
||||||
|
gparted-xhost # needs to be installed as system package so it can be actually opened
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
pwd,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
isEd25519 = k: k.type == "ed25519";
|
||||||
|
getKeyPath = k: k.path;
|
||||||
|
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
||||||
|
in {
|
||||||
|
imports = [inputs.sops-nix.nixosModules.sops];
|
||||||
|
|
||||||
|
sops.age = {
|
||||||
|
sshKeyPaths = map getKeyPath keys;
|
||||||
|
|
||||||
|
# TODO: remove? only rely on ssh or pgp keys (e.g. ubikey like misterio is using!!!)
|
||||||
|
# keyFile = "/home/julian/.config/sops/age/keys.txt";
|
||||||
|
# Generate key if none of the above worked. With this, building will still work, just without secrets
|
||||||
|
generateKey = false; # TODO: building should not work without secrets!?
|
||||||
|
};
|
||||||
|
|
||||||
|
sops.defaultSopsFile = "${pwd}/hosts/secrets-common.yaml";
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [inputs.stylix.nixosModules.stylix];
|
||||||
|
|
||||||
|
stylix.enable = true;
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||||
|
|
||||||
|
stylix.fonts = {
|
||||||
|
serif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Serif";
|
||||||
|
};
|
||||||
|
|
||||||
|
sansSerif = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Sans";
|
||||||
|
};
|
||||||
|
|
||||||
|
monospace = {
|
||||||
|
package = pkgs.dejavu_fonts;
|
||||||
|
name = "DejaVu Sans Mono";
|
||||||
|
};
|
||||||
|
|
||||||
|
emoji = {
|
||||||
|
package = pkgs.noto-fonts-color-emoji;
|
||||||
|
name = "Noto Color Emoji";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,30 +1,28 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.authentication = {
|
pkgs,
|
||||||
pkgs,
|
lib,
|
||||||
lib,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
# Make programs like nextcloud client access saved passwords
|
||||||
# Make programs like nextcloud client access saved passwords
|
services.gnome.gnome-keyring.enable = true;
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
programs.seahorse.enable = true;
|
programs.seahorse.enable = true;
|
||||||
programs.ssh.askPassword = lib.mkForce "${pkgs.seahorse}/libexec/seahorse/ssh-askpass"; # Solve conflicting definition in seahorse and plasma6
|
programs.ssh.askPassword = lib.mkForce "${pkgs.seahorse}/libexec/seahorse/ssh-askpass"; # Solve conflicting definition in seahorse and plasma6
|
||||||
|
|
||||||
# Make authentication work for e.g. gparted
|
# Make authentication work for e.g. gparted
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
user.services.polkit-gnome-authentication-agent-1 = {
|
user.services.polkit-gnome-authentication-agent-1 = {
|
||||||
description = "polkit-gnome-authentication-agent-1";
|
description = "polkit-gnome-authentication-agent-1";
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = ["graphical-session.target"];
|
||||||
wants = ["graphical-session.target"];
|
wants = ["graphical-session.target"];
|
||||||
after = ["graphical-session.target"];
|
after = ["graphical-session.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 1;
|
RestartSec = 1;
|
||||||
TimeoutStopSec = 10;
|
TimeoutStopSec = 10;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.avahi = {
|
# MDNS on local network
|
||||||
# MDNS on local network
|
services.avahi = {
|
||||||
services.avahi = {
|
enable = true;
|
||||||
enable = true;
|
nssmdns4 = true;
|
||||||
nssmdns4 = true;
|
nssmdns6 = true;
|
||||||
nssmdns6 = true;
|
publish.enable = true;
|
||||||
publish.enable = true;
|
publish.addresses = true;
|
||||||
publish.addresses = true;
|
ipv4 = true;
|
||||||
ipv4 = true;
|
ipv6 = true;
|
||||||
ipv6 = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.binarycaches = {
|
lib,
|
||||||
lib,
|
outputs,
|
||||||
outputs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
# Setup binary caches
|
||||||
# Setup binary caches
|
nix.settings = {
|
||||||
nix.settings = {
|
substituters = [
|
||||||
substituters = [
|
"https://nix-community.cachix.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://cache.nixos.org/"
|
||||||
"https://cache.nixos.org/"
|
"https://hyprland.cachix.org"
|
||||||
"https://hyprland.cachix.org"
|
# "http://binarycache.julian-mutter.de"
|
||||||
"http://binarycache.julian-mutter.de"
|
"https://devenv.cachix.org"
|
||||||
"https://devenv.cachix.org"
|
"https://noctalia.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||||
"binarycache.julian-mutter.de:oJ67uRFwRhNPKL58CHzy3QQLv38Kx7OA1K+6xlEPu7E="
|
"binarycache.julian-mutter.de:oJ67uRFwRhNPKL58CHzy3QQLv38Kx7OA1K+6xlEPu7E="
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||||
];
|
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
|
||||||
|
];
|
||||||
|
|
||||||
trusted-users = [
|
trusted-users = [
|
||||||
"root"
|
"root"
|
||||||
"@wheel"
|
"@wheel"
|
||||||
]; # needed for devenv to add custom caches
|
]; # needed for devenv to add custom caches
|
||||||
|
|
||||||
# Ensure we can still build when missing-server is not accessible
|
# Ensure we can still build when missing-server is not accessible
|
||||||
fallback = true;
|
fallback = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.boot-efi = {
|
# Bootloader
|
||||||
# Bootloader
|
# Use this for simple nix boot menu, if no dual boot required
|
||||||
# Use this for simple nix boot menu, if no dual boot required
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.configurationLimit = 10;
|
||||||
boot.loader.systemd-boot.configurationLimit = 10;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/c32c39d6f3b1fe6514598fa40ad2cf9ce22c3fb7/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L66
|
# https://github.com/NixOS/nixpkgs/blob/c32c39d6f3b1fe6514598fa40ad2cf9ce22c3fb7/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix#L66
|
||||||
boot.loader.systemd-boot.editor = false;
|
boot.loader.systemd-boot.editor = false;
|
||||||
|
|
||||||
boot.supportedFilesystems = [
|
boot.supportedFilesystems = [
|
||||||
"btrfs"
|
"btrfs"
|
||||||
"ntfs"
|
"ntfs"
|
||||||
"nfs"
|
"nfs"
|
||||||
"cifs"
|
"cifs"
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.docker = {
|
virtualisation.docker = {
|
||||||
virtualisation.docker = {
|
enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
flake.nixosModules.flatpak = {pkgs, ...}: {
|
services.flatpak.enable = true;
|
||||||
services.flatpak.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.portal.enable = true;
|
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||||
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
xdg.portal.config.common.default = "*"; # Use first portal implementation found
|
||||||
xdg.portal.config.common.default = "*"; # Use first portal implementation found
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,20 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
flake.nixosModules.gamemode = {pkgs, ...}: {
|
programs.gamemode = {
|
||||||
programs.gamemode = {
|
enable = true;
|
||||||
enable = true;
|
settings = {
|
||||||
settings = {
|
general = {
|
||||||
general = {
|
softrealtime = "auto";
|
||||||
softrealtime = "auto";
|
inhibit_screensaver = 1;
|
||||||
inhibit_screensaver = 1;
|
renice = 5;
|
||||||
renice = 5;
|
};
|
||||||
};
|
# gpu = {
|
||||||
# gpu = {
|
# apply_gpu_optimisations = "accept-responsibility";
|
||||||
# apply_gpu_optimisations = "accept-responsibility";
|
# gpu_device = 1;
|
||||||
# gpu_device = 1;
|
# amd_performance_level = "high";
|
||||||
# amd_performance_level = "high";
|
# };
|
||||||
# };
|
custom = {
|
||||||
custom = {
|
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.gdm = {
|
config,
|
||||||
config,
|
lib,
|
||||||
lib,
|
pkgs,
|
||||||
pkgs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
services.xserver.displayManager.gdm = {
|
||||||
services.xserver.displayManager.gdm = {
|
enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# unlock GPG keyring on login
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# unlock GPG keyring on login
|
||||||
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +1,16 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.greetd = {config, ...}: let
|
users.extraUsers.greeter = {
|
||||||
homeCfgs = config.home-manager.users;
|
# For caching
|
||||||
julianCfg = homeCfgs.julian;
|
home = "/tmp/greeter-home";
|
||||||
in {
|
createHome = true;
|
||||||
users.extraUsers.greeter = {
|
};
|
||||||
# For caching
|
|
||||||
home = "/tmp/greeter-home";
|
|
||||||
createHome = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.regreet = {
|
programs.regreet = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = julianCfg.gtk.iconTheme;
|
cageArgs = [
|
||||||
theme = julianCfg.gtk.theme;
|
"-s"
|
||||||
# font = julianCfg.fontProfiles.regular; # TODO: do
|
"-m"
|
||||||
cursorTheme = {
|
"last"
|
||||||
inherit (julianCfg.gtk.cursorTheme) name package;
|
]; # multimonitor use last monitor
|
||||||
};
|
|
||||||
cageArgs = [
|
|
||||||
"-s"
|
|
||||||
"-m"
|
|
||||||
"last"
|
|
||||||
]; # multimonitor use last monitor
|
|
||||||
# settings.background = {
|
|
||||||
# path = julianCfg.wallpaper;
|
|
||||||
# fit = "Cover";
|
|
||||||
# }; # TODO: fix
|
|
||||||
|
|
||||||
# TODO: setting keyboard language does not work
|
|
||||||
# settings = {
|
|
||||||
# env = {
|
|
||||||
# XKB_DEFAULT_LAYOUT = "de";
|
|
||||||
# # XKB_DEFAULT_VARIANT = "altgr-intl";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.i3 = {
|
config,
|
||||||
config,
|
lib,
|
||||||
lib,
|
pkgs,
|
||||||
pkgs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
services.xserver.windowManager.i3.enable = true;
|
||||||
services.xserver.windowManager.i3.enable = true;
|
services.xserver.windowManager.i3.package = pkgs.i3-gaps;
|
||||||
services.xserver.windowManager.i3.package = pkgs.i3-gaps;
|
services.displayManager.defaultSession = "none+i3";
|
||||||
services.displayManager.defaultSession = "none+i3";
|
|
||||||
|
|
||||||
programs.xss-lock = {
|
programs.xss-lock = {
|
||||||
# responds to "loginctl lock-session" via dbus
|
# responds to "loginctl lock-session" via dbus
|
||||||
enable = true;
|
enable = true;
|
||||||
lockerCommand = "${pkgs.i3lock}/bin/i3lock --ignore-empty-password --color=000000";
|
lockerCommand = "${pkgs.i3lock}/bin/i3lock --ignore-empty-password --color=000000";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kubectl
|
||||||
|
k9s
|
||||||
|
];
|
||||||
|
|
||||||
|
sops.secrets.kubeconfig = {
|
||||||
|
sopsFile = ./kubeconfig.secret.yaml;
|
||||||
|
format = "binary";
|
||||||
|
owner = config.users.users.julian.name;
|
||||||
|
group = config.users.users.julian.group;
|
||||||
|
};
|
||||||
|
environment.variables.KUBECONFIG = config.sops.secrets."kubeconfig".path;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"data": "ENC[AES256_GCM,data:nq2czkXqOhjRECF9kASPiBCiz1I7LQLljTV+LkrBp4+BH92YTV6ywRyerNoTDmaBmnY+fuhdnPkN7Q9jjT1SNGLIxBG4b6gOpzgr3amhfNAW3MAUUcPuqNsk0EZ4ZJiUluPCvRtAKHyXsrQpN8P04Rg0OjHoxCrOgKjmODr14QNiQH4RAONSai76dRgRBMQs0PIzcAiMSkwKc0OgBYTccSspV7DlulA3ngv0LuUavKS6QoJ4DuCnFgOu5KHGLQS0ww+Ijp1wAx/4/tq8Iimdn968uvzFjrZATb3bHVjHSR/cbNRCJn6GrpqFCNdpI5OPw3P9f9rodXZKai/bESu2aC8Dlya2by29lCPHkg5lp6atZA8ksnj9brYsFUb6xKPUAPGDElBaUEf+LidsZlI6hAz98/uf3bwyqq22+gMkfKUM1pX1YOtyTq+5eMSn0kBuSVupvEDJaO/G/YlTUDvJL0CzwO0hLzzotLrGcqhvYqjHCr2XhIER+YgYA7D22iml5YOLRxp5RQd3sj74hUGWJkGq1p/uhniaOvrjF0zmQsqHFC4+jUNBKVMVVTLBX/AdL45Lv+HDM4jYCvtNIKAGtTGT71cplhBI2xP1s607NiIbUsSY+2qayh3INOP7qGWwpYquYe/xAk6KZMu1/UuvneVqOjqlcJFOpLqydPnP0oQRy1dtCcJsvT5nv0QEI+Tr24Dbn3tX8fmc8EzZwpmEyHto7nYzHFicgvmYavmTHkmbzySDMI03ktZ7EdM0unlNe9EmR8YyGeg7tmG4bKx9K+7qs0Piqq03gHwN9L92O80J8jiKu8MDURWywYPYHUmCKYbkHh5en1qvyFTU7dDI7L+gdp9+VSqJrkQqPbWAouMBlLE0664lTpzmYQOXWo8riwjYPllkd8EqCaKxrMMHp4Y46X69lsZS1mImuHac3xJV57r6A+mMJajGW92KI13416rwG9sXS1ynNdBTi9+P/1f3Sy8B6ypYa1BP/6+tHqghNAuz5aaKZJnsCWYMAk6y5AuFaZ2ZkO1ruSfdPmyjKoMcp/qO5nmHxF+0h+teSuvLeCb7KrL80IlKElgDINlPYHDVtaoYVv4sZAWhSNJSOUWRbue3bJaqhKz3xOdq5lJy7H3P+MQF8YFgoY7Po4EcXqTP8Upm3tIehPr7BJXNIv6beDPwpMZrvVKqVIgsXD85DqyA1Mh7k5gQpB4uAhZfRUQ8T4reVumjOnGakXh+1DcFPYJumScCP1/68btIYGYJiPJTJhL7/U+12siGzzXXZeaJ7NpCzpvpgmFvoMfV+gFgrAUkb2+eSeEI6BNRjfXWc5NM03RQqotqW4E3Ui+gYbwU0D9/8b5UsRc4IiujnZFSKbCZGGHm79Yrm8IhtTuVyQV67/NeuRfIcJuPPmYGS8nnX8v7pymlagm/43sFHpupsrgeVStsLl1asKJanA6Njus/YA3zrdmgKb1kMK6ALBc73WaT9S+4aZeKB8A6jA5PD2GAgW/T5jaHxi0VPisg0eChKtJfhJVFoZFE+U2fx2YrTeC/joSdS4jqTKaqwDgJ19d5Wvs8ZDQDjHo5I8uUArWODTW/H8An9zp8jsEN6bS1mBeta8qhkz2v9diBUFwmDvmGNX5REirrm3bkqWF2xx6NEiDARTUVAf+fh9VQaQQKK2sQ35zjaAbI4aXmDTI9vy8aFs+6MvJ/iiIwKkjVgZYmyiUVtHy6ZRGwdzgpuOAcoYRxGHaDYIEL33nDQclLmgUwWAfbc0bTI1rvaIzZ25nZ6n4aFFtpANJHTtYeMrAAl1Sho0dio6clM7/k4XST5GA4BqDlRs/Oze4yNjjQb5WoYrBCFEuVcypvRBmLEbM3XOK1sHdQAEAqey/ZfhfNhAVeapVw3ir4E2jsX9pAqlTjH4YkrIURhG05yPb2D3+WMKGAoC4yyusd7siz6tJ4uXvFXkTeOjXMM/Xo/dBnm2J1FPHr9msELIxhtG046/m+I/MEaF6Hg9XC2CZrlxi5OsH61PGBOLLNVFiQ8NaPChHRppQEH1y1GSN+5FinxTK0R5GS3PxN15NZXjmMsj+ixYmbWjkJJXn2bDM7Muv7PRetpcMhU0UIr75+6MWbwPy6v62IsDoQCOslnQVbGc/oHY47EoZ7lKbuulP0ZvQOQxGNvcOtbVc0dJHdFUTgrPxpkCyOQ4NGSLSah1qzDP5j4Fq4ag+OdITPQpDdX6TkiufGfFqq7C5GNHDK8olYKGwH3D0GCGT8o9pFx+FIeRapaWJHkcPibDMyu3KumRy04HF1ih2Z6IoWFHa532pgsK9FlAMGHeqtL/LXWZKtLONR6wNU8DxfbIhV+lUlvbbs27VMj0VHXMXdYnbvGvXOPkb4iP4Pm+HQU4AF3ROA7rtWtrL401Qpdbln5qLEWz9hKCXbM1MbvpGvNvHKckKAWpKmCsVWY8oPCNOqqWAZF5sfrlLb4fULOXg0YQCeobo3O9DZjPf/D/ki6OX5KEgYlqikKdd9hR1d5koyt0bunuFHty2guh8oaUsPjJbcuSCLz80HND9j12msuG13qFWvf77rUiE3WZ5aTSGWh7VB/lUofuEn+aTaGBK7iLAj2PU+/YQUmEFAWaIXOdq7fumHgVdsBRThXvqf7RHD+ZkpMq3D0wsnCwIgCGvxH76ah1wZzPm0lg/tecL294e8ICDuQw+pyOVj96vMdiNF31ADd1BZCO505Y7jsEFdJCJvCGXNNvTr+ir4Vh9RdwBOXxxpX9DcQaaruVQ9nCty/ikBJ04Qok6ZVV8XXbN+HNu8iGVpLNrj1E1rRAJmeqfKiDuiG6ABqLDtq9beMS9K2xhKvwjG/z+AD3v6djipkdYjjlDOV6WNxWWv74LlzjSC9Se9ERATZfCj5U06LHO1yg8y+uIvRyoWIEaAFG7aFrEvfDH6OfzbhutGDMoxBThzKhxPDq9pm/N4cBcoRwGKgrlYmjLIl5Full/ArbLN1C6EXABn9Bu6lL7VrhwSj+HC0sp1vJb3ECmvtD7lzZsqejf4p6P/FPKLHUBNVr6sTJ9fHtOaYFi7DxQONqM/yoPBLB/TeZnB0KFFfKkCNM7YDOZjQ/UZscOZxztcYc7TeQ8dA0ZUfto=,iv:ZgZWZAQZmYUs0EqZuoTCTWQ52CnuSTS+zdIuIA1UNOM=,tag:vbI3RDpvU+X1xQo+lT7WbA==,type:str]",
|
||||||
|
"sops": {
|
||||||
|
"age": [
|
||||||
|
{
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAvMVNBZDd4VndET2pMVjVr\nNkw4aW9HckJXYU0yREoyZ09oZ3JKSVlsQ3c4CkFRWURVN2tmOXNTZHhOdS91QW5a\nRlhhSDI3c2dHVVlTLzB3NjA4c1J2UncKLS0tIHFaL21rRWNpeGlqd0pIaXU5WFRP\neTZSOHpBTTE3ZjFIbXRuSnJjdlEwSXcKqWIxCnWJvE058ojm2RrwzXkTWQLZbE7L\nXPisgwudwY+vFaTziubbPp/U9P3LXs3oFhPSqgiuCkDNLETFkpw1ng==\n-----END AGE ENCRYPTED FILE-----\n",
|
||||||
|
"recipient": "age1ee5udznhadk6m7jtglu4709rep080yjyd2ukzdl8jma4mm92y3psv0slpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBHZHc0TzJKNzBUSG9GajVr\nazFWSS96Z3VXdDZOM2hPdVB4QTRhOEtVNDNRCmJkWm1TUGRwb0hpS1BBWm5WcURx\nQ21idzVZZzR5U0o3eDM1NmwySFpGQzAKLS0tIG51ZndsSDI1N2M4b280SW53eEF0\nMStNSU9odzRhY05SL05RYWlpaUlFQUkKoxVqeqZ9xAR4+JMcJXdEq0cq2CkZz63/\nSjwNDdCHjePc62yj5Qyw15zLrL2t7jvLUG44kPUbDuOIVwMH2KV2hQ==\n-----END AGE ENCRYPTED FILE-----\n",
|
||||||
|
"recipient": "age1q8lc5340gz5xw2f57nglrss68wv0j0hf36py2pdtrl6ky3yrq9qqk0njr4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBYd1ZJTUtLbzY4d1hSRDA1\ndHdRQnhhUHVFMDJVOUQ0VFZCeW40S0lFODBJCmFvRSsyRkI3MDFGeDdkeGRSTVh5\nTEdwQTBWVVlwSjZHWXpoN0xzb0tuR1kKLS0tIEpvVU0rVTRWQUxLNW9zMFo3cVBr\ncGYxemF6MHlBS1dqSXM3aXRTZmdHQWMKjEcJJXRKCber6afB11j1VmWM3dObm45u\nkZ+E3bK1zd/L6YoLr1jF7GP9b62GjTG9Qv1M/JdKM4qlY//GmW6IIQ==\n-----END AGE ENCRYPTED FILE-----\n",
|
||||||
|
"recipient": "age15lxw97z03q40xrdscnxqqugh5ky5aqrerg2t2rphkcqm6rnllurq8v98q5"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lastmodified": "2026-06-18T18:37:59Z",
|
||||||
|
"mac": "ENC[AES256_GCM,data:UXFXrUrbmyp+MnBNDKKr4FP0WFhWH97W68KXlE/UzEvBVpeHste92UPzdX4FMk2rEd7ldsMcTV9hmRavWI5v/Y/y/hzuhdCkqsYfnixS15Z9PrfuFX6YjrpeoJ84s1itmhjimKe4mmXt/aND8DLJ49rQ/A1hebJ2UndBlsRIGmc=,iv:YJPVWuajQ0tzhuoIBcWw8Wy5IBy+HC0JcR69gelGzGM=,tag:YW0STCsswNaqjKBta1OwyQ==,type:str]",
|
||||||
|
"version": "3.13.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,24 +1,22 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.kerberos = {
|
security.krb5.enable = true;
|
||||||
security.krb5.enable = true;
|
security.krb5.settings = {
|
||||||
security.krb5.settings = {
|
# domain_realm = {
|
||||||
# domain_realm = {
|
# ".julian-mutter.de" = "julian-mutter.de";
|
||||||
# ".julian-mutter.de" = "julian-mutter.de";
|
# "julian-mutter.de" = "julian-mutter.de";
|
||||||
# "julian-mutter.de" = "julian-mutter.de";
|
# };
|
||||||
# };
|
libdefaults = {
|
||||||
libdefaults = {
|
default_realm = "julian-mutter.de";
|
||||||
default_realm = "julian-mutter.de";
|
# dns_lookup_realm = true;
|
||||||
# dns_lookup_realm = true;
|
# dns_lookup_kdc = true;
|
||||||
# dns_lookup_kdc = true;
|
# ticket_lifetime = "24h";
|
||||||
# ticket_lifetime = "24h";
|
# renew_lifetime = "7d";
|
||||||
# renew_lifetime = "7d";
|
};
|
||||||
};
|
realms = {
|
||||||
realms = {
|
"julian-mutter.de" = {
|
||||||
"julian-mutter.de" = {
|
kdc = ["kerberos.julian-mutter.de"];
|
||||||
kdc = ["kerberos.julian-mutter.de"];
|
admin_server = "kerberos-admin.julian-mutter.de";
|
||||||
admin_server = "kerberos-admin.julian-mutter.de";
|
default_domain = "julian-mutter.de";
|
||||||
default_domain = "julian-mutter.de";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,51 +1,49 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.openssh = {
|
outputs,
|
||||||
outputs,
|
lib,
|
||||||
lib,
|
config,
|
||||||
config,
|
...
|
||||||
...
|
}: let
|
||||||
}: let
|
hosts = lib.attrNames outputs.nixosConfigurations;
|
||||||
hosts = lib.attrNames outputs.nixosConfigurations;
|
in {
|
||||||
in {
|
services.openssh = {
|
||||||
services.openssh = {
|
enable = true;
|
||||||
enable = true;
|
settings = {
|
||||||
settings = {
|
# Harden
|
||||||
# Harden
|
PasswordAuthentication = false;
|
||||||
PasswordAuthentication = false;
|
PermitRootLogin = "no";
|
||||||
PermitRootLogin = "no";
|
|
||||||
|
|
||||||
# TODO: what does this do
|
# TODO: what does this do
|
||||||
# Let WAYLAND_DISPLAY be forwarded
|
# Let WAYLAND_DISPLAY be forwarded
|
||||||
AcceptEnv = "WAYLAND_DISPLAY";
|
# AcceptEnv = "WAYLAND_DISPLAY";
|
||||||
X11Forwarding = true;
|
X11Forwarding = true;
|
||||||
};
|
|
||||||
|
|
||||||
hostKeys = [
|
|
||||||
{
|
|
||||||
path = "/etc/ssh/ssh_host_ed25519_key";
|
|
||||||
type = "ed25519";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: is automatic known hosts file even necessary?
|
hostKeys = [
|
||||||
# programs.ssh = {
|
{
|
||||||
# # Each hosts public key
|
path = "/etc/ssh/ssh_host_ed25519_key";
|
||||||
# knownHosts = lib.genAttrs hosts (hostname: {
|
type = "ed25519";
|
||||||
# publicKeyFile = ../../${hostname}/ssh_host_ed25519_key.pub;
|
}
|
||||||
# extraHostNames =
|
];
|
||||||
# [
|
|
||||||
# # "${hostname}.m7.rs"
|
|
||||||
# ]
|
|
||||||
# ++
|
|
||||||
# # Alias for localhost if it's the same host
|
|
||||||
# (lib.optional (hostname == config.networking.hostName) "localhost")
|
|
||||||
# # Alias to m7.rs and git.m7.rs if it's alcyone
|
|
||||||
# ++ (lib.optionals (hostname == "alcyone") [
|
|
||||||
# "m7.rs"
|
|
||||||
# "git.m7.rs"
|
|
||||||
# ]);
|
|
||||||
# });
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: is automatic known hosts file even necessary?
|
||||||
|
# programs.ssh = {
|
||||||
|
# # Each hosts public key
|
||||||
|
# knownHosts = lib.genAttrs hosts (hostname: {
|
||||||
|
# publicKeyFile = ../../${hostname}/ssh_host_ed25519_key.pub;
|
||||||
|
# extraHostNames =
|
||||||
|
# [
|
||||||
|
# # "${hostname}.m7.rs"
|
||||||
|
# ]
|
||||||
|
# ++
|
||||||
|
# # Alias for localhost if it's the same host
|
||||||
|
# (lib.optional (hostname == config.networking.hostName) "localhost")
|
||||||
|
# # Alias to m7.rs and git.m7.rs if it's alcyone
|
||||||
|
# ++ (lib.optionals (hostname == "alcyone") [
|
||||||
|
# "m7.rs"
|
||||||
|
# "git.m7.rs"
|
||||||
|
# ]);
|
||||||
|
# });
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
flake.nixosModules.pcmanfm = {pkgs, ...}: {
|
environment.systemPackages = with pkgs; [
|
||||||
environment.systemPackages = with pkgs; [
|
shared-mime-info # extended mimetype support
|
||||||
shared-mime-info # extended mimetype support
|
lxmenu-data # open with "Installed Applications"
|
||||||
lxmenu-data # open with "Installed Applications"
|
pcmanfm
|
||||||
pcmanfm
|
];
|
||||||
];
|
|
||||||
|
|
||||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,26 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.pipewire = {
|
security.rtkit.enable = true;
|
||||||
security.rtkit.enable = true;
|
services.pulseaudio.enable = false;
|
||||||
services.pulseaudio.enable = false;
|
services.pipewire = {
|
||||||
services.pipewire = {
|
enable = true;
|
||||||
enable = true;
|
wireplumber.enable = true;
|
||||||
wireplumber.enable = true;
|
alsa.enable = true;
|
||||||
alsa.enable = true;
|
alsa.support32Bit = true;
|
||||||
alsa.support32Bit = true;
|
pulse.enable = true;
|
||||||
pulse.enable = true;
|
jack.enable = true;
|
||||||
jack.enable = true;
|
extraConfig.pipewire = {
|
||||||
extraConfig.pipewire = {
|
"99-no-bell" = {
|
||||||
"99-no-bell" = {
|
# Disable bell sound
|
||||||
# Disable bell sound
|
"context.properties" = {
|
||||||
"context.properties" = {
|
"module.x11.bell" = false;
|
||||||
"module.x11.bell" = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
"10-increase-buffer" = {
|
};
|
||||||
"context.properties" = {
|
"10-increase-buffer" = {
|
||||||
"default.clock.rate" = 48000;
|
"context.properties" = {
|
||||||
"default.clock.quantum" = 1024;
|
"default.clock.rate" = 48000;
|
||||||
"default.clock.min-quantum" = 1024;
|
"default.clock.quantum" = 1024;
|
||||||
"default.clock.max-quantum" = 2048;
|
"default.clock.min-quantum" = 1024;
|
||||||
};
|
"default.clock.max-quantum" = 2048;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{config, ...}: let
|
||||||
flake.nixosModules.podman = {config, ...}: let
|
dockerEnabled = config.virtualisation.docker.enable;
|
||||||
dockerEnabled = config.virtualisation.docker.enable;
|
in {
|
||||||
in {
|
virtualisation.podman = {
|
||||||
virtualisation.podman = {
|
enable = true;
|
||||||
enable = true;
|
dockerCompat = !dockerEnabled;
|
||||||
dockerCompat = !dockerEnabled;
|
dockerSocket.enable = !dockerEnabled;
|
||||||
dockerSocket.enable = !dockerEnabled;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.redshift = {
|
config,
|
||||||
config,
|
lib,
|
||||||
lib,
|
pkgs,
|
||||||
pkgs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
# Set location used by redshift
|
||||||
# Set location used by redshift
|
location.provider = "manual";
|
||||||
location.provider = "manual";
|
location.latitude = 47.92;
|
||||||
location.latitude = 47.92;
|
location.longitude = 10.12;
|
||||||
location.longitude = 10.12;
|
services.redshift.enable = true;
|
||||||
services.redshift.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,34 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.remote-builder = {
|
nix.distributedBuilds = true;
|
||||||
nix.distributedBuilds = true;
|
nix.settings.builders-use-substitutes = true;
|
||||||
nix.settings.builders-use-substitutes = true;
|
|
||||||
|
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
{
|
{
|
||||||
hostName = "builder.julian-mutter.de";
|
hostName = "builder.julian-mutter.de";
|
||||||
protocol = "ssh";
|
protocol = "ssh";
|
||||||
sshUser = "nix";
|
sshUser = "nix";
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
];
|
];
|
||||||
maxJobs = 4;
|
maxJobs = 4;
|
||||||
speedFactor = 3;
|
speedFactor = 3;
|
||||||
supportedFeatures = [
|
supportedFeatures = [
|
||||||
"nixos-test"
|
"nixos-test"
|
||||||
"benchmark"
|
"benchmark"
|
||||||
"big-parallel"
|
"big-parallel"
|
||||||
"kvm"
|
"kvm"
|
||||||
];
|
];
|
||||||
mandatoryFeatures = [];
|
mandatoryFeatures = [];
|
||||||
}
|
}
|
||||||
# {
|
# {
|
||||||
# hostName = "localhost";
|
# hostName = "localhost";
|
||||||
# protocol = null;
|
# protocol = null;
|
||||||
# systems = [
|
# systems = [
|
||||||
# "x86_64-linux"
|
# "x86_64-linux"
|
||||||
# ];
|
# ];
|
||||||
# maxJobs = 4;
|
# maxJobs = 4;
|
||||||
# speedFactor = 1;
|
# speedFactor = 1;
|
||||||
# }
|
# }
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.thunar = {
|
config,
|
||||||
config,
|
lib,
|
||||||
lib,
|
pkgs,
|
||||||
pkgs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
programs.thunar.enable = true;
|
||||||
programs.thunar.enable = true;
|
programs.xfconf.enable = true; # Persist saved preferences
|
||||||
programs.xfconf.enable = true; # Persist saved preferences
|
programs.thunar.plugins = with pkgs.xfce; [
|
||||||
programs.thunar.plugins = with pkgs.xfce; [
|
thunar-archive-plugin
|
||||||
thunar-archive-plugin
|
thunar-volman
|
||||||
thunar-volman
|
thunar-media-tags-plugin
|
||||||
thunar-media-tags-plugin
|
];
|
||||||
];
|
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
||||||
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
services.tumbler.enable = true; # Thumbnail support for images
|
||||||
services.tumbler.enable = true; # Thumbnail support for images
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.virtualbox = {
|
config,
|
||||||
config,
|
lib,
|
||||||
lib,
|
pkgs,
|
||||||
pkgs,
|
...
|
||||||
...
|
}: {
|
||||||
}: {
|
virtualisation.virtualbox.host.enable = true;
|
||||||
virtualisation.virtualbox.host.enable = true;
|
# virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||||
# virtualisation.virtualbox.host.enableExtensionPack = true;
|
# virtualisation.virtualbox.guest.enable = true;
|
||||||
# virtualisation.virtualbox.guest.enable = true;
|
# virtualisation.virtualbox.guest.x11 = true;
|
||||||
# virtualisation.virtualbox.guest.x11 = true;
|
users.extraGroups.vboxusers.members = ["julian"];
|
||||||
users.extraGroups.vboxusers.members = ["julian"];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.wireguard = {
|
networking.wg-quick.interfaces = {
|
||||||
networking.wg-quick.interfaces = {
|
julian = {
|
||||||
julian = {
|
configFile = "/etc/wireguard/julian.conf";
|
||||||
configFile = "/etc/wireguard/julian.conf";
|
autostart = true; # This interface is started on boot
|
||||||
autostart = true; # This interface is started on boot
|
};
|
||||||
};
|
comu = {
|
||||||
comu = {
|
configFile = "/etc/wireguard/comu.conf";
|
||||||
configFile = "/etc/wireguard/comu.conf";
|
autostart = false;
|
||||||
autostart = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.wireshark = {
|
programs.wireshark = {
|
||||||
programs.wireshark = {
|
enable = true;
|
||||||
enable = true;
|
dumpcap.enable = true;
|
||||||
dumpcap.enable = true;
|
usbmon.enable = true;
|
||||||
usbmon.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.julian.extraGroups = ["wireshark"];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.julian.extraGroups = ["wireshark"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.xserver = {
|
services.xserver = {
|
||||||
services.xserver = {
|
enable = true;
|
||||||
enable = true;
|
wacom.enable = true;
|
||||||
wacom.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,52 +1,51 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.users.julian = {
|
pwd,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
in {
|
in {
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.julian = {
|
users.users.julian = {
|
||||||
description = "Julian";
|
description = "Julian";
|
||||||
group = "julian";
|
group = "julian";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
extraGroups = ifTheyExist [
|
extraGroups = ifTheyExist [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
"audio"
|
"audio"
|
||||||
"realtime"
|
"realtime"
|
||||||
"rtkit"
|
"rtkit"
|
||||||
"network"
|
"network"
|
||||||
"video"
|
"video"
|
||||||
"podman"
|
"podman"
|
||||||
"docker"
|
"docker"
|
||||||
"git"
|
"git"
|
||||||
"gamemode"
|
"gamemode"
|
||||||
"dialout"
|
"dialout"
|
||||||
];
|
];
|
||||||
|
|
||||||
openssh.authorizedKeys.keys = lib.splitString "\n" (
|
openssh.authorizedKeys.keys = lib.splitString "\n" (
|
||||||
builtins.readFile ../../../../homes/julian/ssh.pub
|
builtins.readFile ./ssh.pub
|
||||||
);
|
);
|
||||||
# hashedPasswordFile = config.sops.secrets.julian-password.path;
|
# hashedPasswordFile = config.sops.secrets.julian-password.path;
|
||||||
hashedPassword = "$y$j9T$N33kLJQbV8soUoCbDkpwA1$r/yahJDgOPo4GGOrAi6BUG5zLTzmaBrA5NQ4nno561A";
|
hashedPassword = "$y$j9T$N33kLJQbV8soUoCbDkpwA1$r/yahJDgOPo4GGOrAi6BUG5zLTzmaBrA5NQ4nno561A";
|
||||||
packages = [pkgs.home-manager];
|
packages = [pkgs.home-manager];
|
||||||
};
|
|
||||||
users.groups.julian = {
|
|
||||||
gid = 1000;
|
|
||||||
};
|
|
||||||
|
|
||||||
sops.secrets.julian-password = {
|
|
||||||
sopsFile = ../../secrets.yaml;
|
|
||||||
neededForUsers = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.julian = import ../../../../homes/julian/${config.networking.hostName}.nix;
|
|
||||||
|
|
||||||
security.pam.services.swaylock = {}; # Make swaylock unlocking work
|
|
||||||
};
|
};
|
||||||
|
users.groups.julian = {
|
||||||
|
gid = 1000;
|
||||||
|
};
|
||||||
|
|
||||||
|
sops.secrets.julian-password = {
|
||||||
|
sopsFile = "${pwd}/hosts/secrets-common.yaml";
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.julian = import "${pwd}/homes/julian/${config.networking.hostName}.nix";
|
||||||
|
|
||||||
|
security.pam.services.swaylock = {}; # Make swaylock unlocking work
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.users.pob = {
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.mutableUsers = false;
|
|
||||||
users.users.pob = {
|
|
||||||
description = "A helper user to use another profile for some applications";
|
|
||||||
group = "pob";
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"networkmanager"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
wineWowPackages.stable # 32-bit and 64-bit wine
|
|
||||||
winetricks
|
|
||||||
];
|
|
||||||
};
|
|
||||||
users.groups.pob = {};
|
|
||||||
|
|
||||||
security.sudo.extraConfig = ''
|
|
||||||
julian ALL=(pob) NOPASSWD: ALL
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,32 +1,30 @@
|
|||||||
{
|
{
|
||||||
flake.nixosModules.users.wolfi = {
|
pkgs,
|
||||||
pkgs,
|
config,
|
||||||
config,
|
...
|
||||||
...
|
}: let
|
||||||
}: let
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
in {
|
||||||
in {
|
users.mutableUsers = false;
|
||||||
users.mutableUsers = false;
|
users.users.wolfi = {
|
||||||
users.users.wolfi = {
|
description = "Wolfi";
|
||||||
description = "Wolfi";
|
group = "wolfi";
|
||||||
group = "wolfi";
|
isNormalUser = true;
|
||||||
isNormalUser = true;
|
shell = pkgs.fish;
|
||||||
shell = pkgs.fish;
|
extraGroups = ifTheyExist [
|
||||||
extraGroups = ifTheyExist [
|
"networkmanager"
|
||||||
"networkmanager"
|
"wheel"
|
||||||
"wheel"
|
"audio"
|
||||||
"audio"
|
"network"
|
||||||
"network"
|
"video"
|
||||||
"video"
|
"podman"
|
||||||
"podman"
|
"docker"
|
||||||
"docker"
|
"git"
|
||||||
"git"
|
"gamemode"
|
||||||
"gamemode"
|
];
|
||||||
];
|
|
||||||
|
|
||||||
hashedPassword = "$y$j9T$ifzWjoZaRtPUOOfMYnbJ20$uFOO1EyDApL52vRUicZYgupaTA/a6sGNUj3imZ/lcb6";
|
hashedPassword = "$y$j9T$ifzWjoZaRtPUOOfMYnbJ20$uFOO1EyDApL52vRUicZYgupaTA/a6sGNUj3imZ/lcb6";
|
||||||
packages = [pkgs.home-manager];
|
packages = [pkgs.home-manager];
|
||||||
};
|
|
||||||
users.groups.wolfi = {};
|
|
||||||
};
|
};
|
||||||
|
users.groups.wolfi = {};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,99 +0,0 @@
|
|||||||
{
|
|
||||||
flake.nixosModules.users.yukari = {
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
outputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
|
||||||
in {
|
|
||||||
users.mutableUsers = false;
|
|
||||||
users.users.yukari = {
|
|
||||||
description = "Yukari";
|
|
||||||
group = "yukari";
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
extraGroups = ifTheyExist [
|
|
||||||
"networkmanager"
|
|
||||||
"audio"
|
|
||||||
"network"
|
|
||||||
"video"
|
|
||||||
"podman"
|
|
||||||
"docker"
|
|
||||||
"git"
|
|
||||||
"gamemode"
|
|
||||||
];
|
|
||||||
|
|
||||||
createHome = true;
|
|
||||||
hashedPassword = "$y$j9T$rGuTL0rfiy7ht8L58BGCw0$fN.KwHjYlIitFEPHndKvV06ezgeWzP3/58o1kkviZwB";
|
|
||||||
packages = [pkgs.home-manager];
|
|
||||||
};
|
|
||||||
users.groups.yukari = {};
|
|
||||||
|
|
||||||
home-manager.users.yukari = {
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
../../../../homes/julian/features/fonts
|
|
||||||
../../../../homes/julian/features/suites/cli
|
|
||||||
]
|
|
||||||
++ (builtins.attrValues outputs.homeManagerModules);
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = lib.mkDefault "yukari";
|
|
||||||
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
||||||
stateVersion = lib.mkDefault "23.11";
|
|
||||||
|
|
||||||
sessionPath = ["$HOME/.local/bin"];
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
arandr
|
|
||||||
calibre # ebook manager and viewer
|
|
||||||
# digikam
|
|
||||||
discord
|
|
||||||
discord-ptb # in case discord updates take their time
|
|
||||||
# dvdisaster
|
|
||||||
# element-desktop
|
|
||||||
# rocketchat-desktop
|
|
||||||
thunderbird
|
|
||||||
telegram-desktop # telegram
|
|
||||||
# schildichat-desktop # not updated regularly
|
|
||||||
nheko
|
|
||||||
evince # Simple pdf reader, good for focusing on document content
|
|
||||||
firefox
|
|
||||||
vivaldi
|
|
||||||
# geogebra
|
|
||||||
cheese
|
|
||||||
handbrake
|
|
||||||
# kitty # Terminal, already available as feature
|
|
||||||
libnotify
|
|
||||||
libreoffice
|
|
||||||
mate.engrampa
|
|
||||||
nomacs # Image viewer
|
|
||||||
kdePackages.okular # Pdf reader with many features, good for commenting documents
|
|
||||||
pavucontrol
|
|
||||||
qalculate-gtk # Nice gui calculator
|
|
||||||
qpdfview
|
|
||||||
# qutebrowser
|
|
||||||
# realvnc-vnc-viewer
|
|
||||||
# rustdesk
|
|
||||||
tor-browser
|
|
||||||
# frajul.pob-dev-version # Path of Building
|
|
||||||
vlc
|
|
||||||
wineWowPackages.stable # 32-bit and 64-bit wine
|
|
||||||
winetricks
|
|
||||||
xclip # x11 clipboard access from terminal
|
|
||||||
xfce.mousepad # simple text editor
|
|
||||||
xournalpp # Edit pdf files
|
|
||||||
zoom-us # Video conferencing
|
|
||||||
zotero # Manage papers and other sources
|
|
||||||
pdfpc # Present slides in pdf form
|
|
||||||
];
|
|
||||||
};
|
|
||||||
programs = {
|
|
||||||
home-manager.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Generated
+380
-141
@@ -1,18 +1,70 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"base16-schemes": {
|
"base16": {
|
||||||
|
"inputs": {
|
||||||
|
"fromYaml": "fromYaml"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755819240,
|
||||||
|
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "base16.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-fish": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696158499,
|
"lastModified": 1765809053,
|
||||||
"narHash": "sha256-5yIHgDTPjoX/3oDEfLSQ0eJZdFL1SaCfb9d6M0RmOTM=",
|
"narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=",
|
||||||
|
"owner": "tomyun",
|
||||||
|
"repo": "base16-fish",
|
||||||
|
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tomyun",
|
||||||
|
"repo": "base16-fish",
|
||||||
|
"rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-helix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776754714,
|
||||||
|
"narHash": "sha256-E3OAK27smtATTmX45uoTSRsVD+Y+ZiVVfgM/tjpbtYg=",
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-schemes",
|
"repo": "base16-helix",
|
||||||
"rev": "a9112eaae86d9dd8ee6bb9445b664fba2f94037a",
|
"rev": "4d508123037e7851ad36ebf7d9c48b0e9e1eb581",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "tinted-theming",
|
"owner": "tinted-theming",
|
||||||
"repo": "base16-schemes",
|
"repo": "base16-helix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"base16-vim": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1732806396,
|
||||||
|
"narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-vim",
|
||||||
|
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-vim",
|
||||||
|
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -58,11 +110,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769524058,
|
"lastModified": 1780290312,
|
||||||
"narHash": "sha256-zygdD6X1PcVNR2PsyK4ptzrVEiAdbMqLos7utrMDEWE=",
|
"narHash": "sha256-eTAlX0CwgB84Ts3GaBd944A3DRXVMzgA0EqroZBISUo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "71a3fc97d80881e91710fe721f1158d3b96ae14d",
|
"rev": "115e5211780054d8a890b41f0b7734cafad54dfe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -71,6 +123,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"firefox-gnome-theme": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1779670703,
|
||||||
|
"narHash": "sha256-UdfMivNMwCCqQsYDg5pSz8X2IOaOrIZLIIy+Bg3CO2o=",
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"rev": "942159e73e40bf785816f7f1f5feed9ef3d7c8f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rafaelmardojai",
|
||||||
|
"repo": "firefox-gnome-theme",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -111,11 +179,32 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768135262,
|
"lastModified": 1778716662,
|
||||||
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
|
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778716662,
|
||||||
|
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -161,24 +250,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_3": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_4"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_4": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_6"
|
"systems": "systems_6"
|
||||||
},
|
},
|
||||||
@@ -196,6 +267,39 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"fromYaml": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731966426,
|
||||||
|
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "SenchoPens",
|
||||||
|
"repo": "fromYaml",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gnome-shell": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1767737596,
|
||||||
|
"narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
|
||||||
|
"owner": "GNOME",
|
||||||
|
"repo": "gnome-shell",
|
||||||
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "GNOME",
|
||||||
|
"repo": "gnome-shell",
|
||||||
|
"rev": "ef02db02bf0ff342734d525b5767814770d85b49",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -203,16 +307,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770260404,
|
"lastModified": 1780361225,
|
||||||
"narHash": "sha256-3iVX1+7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8=",
|
"narHash": "sha256-wnV9ttf4fPWNonBIQmvlrSlNpQYgx5HgWWd007mwIFA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0d782ee42c86b196acff08acfbf41bb7d13eed5b",
|
"rev": "e28654b71096e08c019d4861ca26acb646f583d8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-25.11",
|
"ref": "release-26.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -257,34 +361,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ixx": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"nixvim",
|
|
||||||
"nuschtosSearch",
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nuschtosSearch",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1754860581,
|
|
||||||
"narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=",
|
|
||||||
"owner": "NuschtOS",
|
|
||||||
"repo": "ixx",
|
|
||||||
"rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NuschtOS",
|
|
||||||
"ref": "v0.1.1",
|
|
||||||
"repo": "ixx",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"music-reader": {
|
"music-reader": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
@@ -326,25 +402,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-colors": {
|
|
||||||
"inputs": {
|
|
||||||
"base16-schemes": "base16-schemes",
|
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1707825078,
|
|
||||||
"narHash": "sha256-hTfge2J2W+42SZ7VHXkf4kjU+qzFqPeC9k66jAUBMHk=",
|
|
||||||
"owner": "misterio77",
|
|
||||||
"repo": "nix-colors",
|
|
||||||
"rev": "b01f024090d2c4fc3152cd0cf12027a7b8453ba1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "misterio77",
|
|
||||||
"repo": "nix-colors",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-gl": {
|
"nix-gl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
@@ -373,11 +430,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772945408,
|
"lastModified": 1780210899,
|
||||||
"narHash": "sha256-PMt48sEQ8cgCeljQ9I/32uoBq/8t8y+7W/nAZhf72TQ=",
|
"narHash": "sha256-4axz3OBPTKa6LIkXV8n0lc63MQU+et2CB5DGobEAi6k=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "1c1d8ea87b047788fd7567adf531418c5da321ec",
|
"rev": "97df9dc0b7c924344b793a15c1e8e4522ebb854e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -444,12 +501,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_4"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770882871,
|
"lastModified": 1780310866,
|
||||||
"narHash": "sha256-nw5g+xl3veea+maxJ2/81tMEA/rPq9aF1H5XF35X+OE=",
|
"narHash": "sha256-fPBRVf6A5xlACYcOI59shGrjURuvwu0lRsDoSCEXt/I=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "af04cb78aa85b2a4d1c15fc7270347e0d0eda97b",
|
"rev": "4ed851c979641e28597a05086332d75cdc9e395f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -474,28 +534,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1697935651,
|
|
||||||
"narHash": "sha256-qOfWjQ2JQSQL15KLh6D7xQhx0qgZlYZTYlcEiRuAMMw=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"rev": "e1e11fdbb01113d85c7f41cada9d2847660e3902",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "nixpkgs.lib",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770841267,
|
"lastModified": 1780243769,
|
||||||
"narHash": "sha256-9xejG0KoqsoKEGp2kVbXRlEYtFFcDTHjidiuX8hGO44=",
|
"narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ec7c70d12ce2fc37cb92aff673dcdca89d187bae",
|
"rev": "331800de5053fcebacf6813adb5db9c9dca22a0c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -535,16 +580,29 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770770419,
|
"lastModified": 1767892417,
|
||||||
"narHash": "sha256-iKZMkr6Cm9JzWlRYW/VPoL0A9jVKtZYiU4zSrVeetIs=",
|
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
|
||||||
|
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780203844,
|
||||||
|
"narHash": "sha256-K5sT4jTpGs15ADhviMKNBH38REpPf5Q6mM1+N6cArVE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6c5e707c6b5339359a9a9e215c5e66d6d802fd7a",
|
"rev": "b51242d7d43689db2f3be91bd05d5b24fbb469c4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-26.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -555,44 +613,89 @@
|
|||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nuschtosSearch": "nuschtosSearch",
|
"systems": "systems_4"
|
||||||
"systems": "systems_5"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769049374,
|
"lastModified": 1780214453,
|
||||||
"narHash": "sha256-h0Os2qqNyycDY1FyZgtbn28VF1ySP74/n0f+LDd8j+w=",
|
"narHash": "sha256-Bfq9y0X6Vs4UPb67u7hN3jt7fJKHtl3+g0lBSDebRNg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "b8f76bf5751835647538ef8784e4e6ee8deb8f95",
|
"rev": "167da56c3ab1e51751a6ae4a997ed66587f9edae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-26.05",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nuschtosSearch": {
|
"noctalia": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
|
||||||
"ixx": "ixx",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"noctalia-qs": "noctalia-qs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780371321,
|
||||||
|
"narHash": "sha256-WCaU6npdMdjZSZHe3XATNDFijmzRnsV8V+iR80e5deg=",
|
||||||
|
"owner": "noctalia-dev",
|
||||||
|
"repo": "noctalia-shell",
|
||||||
|
"rev": "3aab45a2f34fd47666b05892b95054952e788de1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "noctalia-dev",
|
||||||
|
"repo": "noctalia-shell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"noctalia-qs": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"noctalia",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems_5",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780194487,
|
||||||
|
"narHash": "sha256-M+YtjKCTkHrkplNaKVyaxfa8hAWjRF6wFOUBAZvxQ4U=",
|
||||||
|
"owner": "noctalia-dev",
|
||||||
|
"repo": "noctalia-qs",
|
||||||
|
"rev": "07398e12b54f194e3a2d47c87e3fd10b8eeaa27d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "noctalia-dev",
|
||||||
|
"repo": "noctalia-qs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nur": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": [
|
||||||
|
"stylix",
|
||||||
|
"flake-parts"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"stylix",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768249818,
|
"lastModified": 1779766384,
|
||||||
"narHash": "sha256-ANfn5OqIxq3HONPIXZ6zuI5sLzX1sS+2qcf/Pa0kQEc=",
|
"narHash": "sha256-P7Ohnlq8b8b2fU+Sgkrej7LBTM60LBTkHleLuYzmLmU=",
|
||||||
"owner": "NuschtOS",
|
"owner": "nix-community",
|
||||||
"repo": "search",
|
"repo": "NUR",
|
||||||
"rev": "b6f77b88e9009bfde28e2130e218e5123dc66796",
|
"rev": "57800b7ab648725ccd33551d01484ee14952ad3f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NuschtOS",
|
"owner": "nix-community",
|
||||||
"repo": "search",
|
"repo": "NUR",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -603,25 +706,26 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"music-reader": "music-reader",
|
"music-reader": "music-reader",
|
||||||
"nix-colors": "nix-colors",
|
|
||||||
"nix-gl": "nix-gl",
|
"nix-gl": "nix-gl",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nix-matlab": "nix-matlab",
|
"nix-matlab": "nix-matlab",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
"noctalia": "noctalia",
|
||||||
"sheet-organizer": "sheet-organizer",
|
"sheet-organizer": "sheet-organizer",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"systems": "systems_7",
|
"stylix": "stylix",
|
||||||
|
"systems": "systems_8",
|
||||||
"yazi-flavors": "yazi-flavors"
|
"yazi-flavors": "yazi-flavors"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sheet-organizer": {
|
"sheet-organizer": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
@@ -647,11 +751,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770683991,
|
"lastModified": 1777944972,
|
||||||
"narHash": "sha256-xVfPvXDf9QN3Eh9dV+Lw6IkWG42KSuQ1u2260HKvpnc=",
|
"narHash": "sha256-VfGRo1qTBKOe3s2gOv8LSoA6Fk19PvBlwQ1ECN0Evn8=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "8b89f44c2cc4581e402111d928869fe7ba9f7033",
|
"rev": "c591bf665727040c6cc5cb409079acb22dcce33c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -660,6 +764,40 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"stylix": {
|
||||||
|
"inputs": {
|
||||||
|
"base16": "base16",
|
||||||
|
"base16-fish": "base16-fish",
|
||||||
|
"base16-helix": "base16-helix",
|
||||||
|
"base16-vim": "base16-vim",
|
||||||
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
|
"gnome-shell": "gnome-shell",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nur": "nur",
|
||||||
|
"systems": "systems_7",
|
||||||
|
"tinted-kitty": "tinted-kitty",
|
||||||
|
"tinted-schemes": "tinted-schemes",
|
||||||
|
"tinted-tmux": "tinted-tmux",
|
||||||
|
"tinted-zed": "tinted-zed"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780418496,
|
||||||
|
"narHash": "sha256-m34WEd1dxo17CQUz702xJrMsnTewsaYyeKKi5Y86HJw=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "stylix",
|
||||||
|
"rev": "45b51150627b28b1d4a4ab4e5d645af8cb7c2ef6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-26.05",
|
||||||
|
"repo": "stylix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
@@ -722,16 +860,16 @@
|
|||||||
},
|
},
|
||||||
"systems_5": {
|
"systems_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -751,6 +889,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_7": {
|
"systems_7": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_8": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
@@ -765,6 +918,92 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tinted-kitty": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1735730497,
|
||||||
|
"narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-kitty",
|
||||||
|
"rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-kitty",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-schemes": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1777806186,
|
||||||
|
"narHash": "sha256-PDF0/wObw4nIsSBeXVYLsloXOiphXCgIdsrNcVXguKs=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"rev": "0c94645546f4f3ddac77a1a5fce54eb95bf50795",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "schemes",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-tmux": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778379944,
|
||||||
|
"narHash": "sha256-wPDFzMGSlARlw0Sfsn48Q2+jPSfk6N0Ng6BC/d+7Q24=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-tmux",
|
||||||
|
"rev": "fe0203a198690e71a5ff11e08812a4673de3678d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "tinted-tmux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tinted-zed": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778378178,
|
||||||
|
"narHash": "sha256-OXPXRIQgGwV77HjYRryOHguh4ALX96jkg+tseLkGgHA=",
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-zed",
|
||||||
|
"rev": "9cd816033ff969415b190722cddf134e78a5665f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "tinted-theming",
|
||||||
|
"repo": "base16-zed",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"noctalia",
|
||||||
|
"noctalia-qs",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1775636079,
|
||||||
|
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@@ -786,11 +1025,11 @@
|
|||||||
"yazi-flavors": {
|
"yazi-flavors": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770522883,
|
"lastModified": 1780204176,
|
||||||
"narHash": "sha256-tCAJXPV7s1akc+zHGdWjmdMPG4NpBE92vcO7LAvI5TI=",
|
"narHash": "sha256-qWNArjWuxWL+rOjLzyIniW5hJgWiAWTCgXmMXJpaWZE=",
|
||||||
"owner": "yazi-rs",
|
"owner": "yazi-rs",
|
||||||
"repo": "flavors",
|
"repo": "flavors",
|
||||||
"rev": "4c5753789ea535540e868e2764127be9230cef23",
|
"rev": "0f9204bc948c8313963f5c9d571a82edc201f8aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -3,20 +3,29 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
systems.url = "github:nix-systems/default-linux";
|
systems.url = "github:nix-systems/default-linux";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
nix-colors.url = "github:misterio77/nix-colors";
|
|
||||||
deploy-rs.url = "github:serokell/deploy-rs";
|
deploy-rs.url = "github:serokell/deploy-rs";
|
||||||
|
|
||||||
|
noctalia = {
|
||||||
|
url = "github:noctalia-dev/noctalia-shell";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
stylix = {
|
||||||
|
url = "github:nix-community/stylix/release-26.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-index-database = {
|
nix-index-database = {
|
||||||
@@ -36,16 +45,13 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
||||||
import-tree.url = "github:vic/import-tree";
|
|
||||||
|
|
||||||
# Various flakes
|
# Various flakes
|
||||||
yazi-flavors = {
|
yazi-flavors = {
|
||||||
url = "github:yazi-rs/flavors";
|
url = "github:yazi-rs/flavors";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
nixvim = {
|
nixvim = {
|
||||||
url = "github:nix-community/nixvim/nixos-25.11";
|
url = "github:nix-community/nixvim/nixos-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-matlab = {
|
nix-matlab = {
|
||||||
@@ -64,163 +70,99 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = {
|
||||||
inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree
|
self,
|
||||||
[
|
nixpkgs,
|
||||||
./hosts
|
home-manager,
|
||||||
./features-nixos
|
systems,
|
||||||
./homes
|
...
|
||||||
./features-home-manager
|
} @ inputs: let
|
||||||
# ./modules
|
inherit (self) outputs;
|
||||||
# ./overlays
|
lib = nixpkgs.lib // home-manager.lib;
|
||||||
# ./packages
|
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
|
||||||
]);
|
pkgsFor = lib.genAttrs (import systems) (
|
||||||
# let
|
system:
|
||||||
# inherit (self) outputs;
|
import nixpkgs {
|
||||||
# lib = nixpkgs.lib // home-manager.lib;
|
inherit system;
|
||||||
# forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
|
config.allowUnfree = true;
|
||||||
# pkgsFor = lib.genAttrs (import systems) (
|
}
|
||||||
# system:
|
);
|
||||||
# import nixpkgs {
|
in {
|
||||||
# inherit system;
|
inherit lib;
|
||||||
# config.allowUnfree = true;
|
|
||||||
# config.permittedInsecurePackages = [
|
|
||||||
# "olm-3.2.16"
|
|
||||||
# ];
|
|
||||||
# warn-dirty = false;
|
|
||||||
# }
|
|
||||||
# );
|
|
||||||
# in {
|
|
||||||
# inherit lib;
|
|
||||||
|
|
||||||
# nixosModules = import ./modules/nixos;
|
nixosModules = import ./modules/nixos;
|
||||||
# homeManagerModules = import ./modules/home-manager;
|
homeManagerModules = import ./modules/home-manager;
|
||||||
|
|
||||||
# overlays = import ./overlays {inherit inputs outputs;};
|
overlays = import ./overlays {inherit inputs outputs;};
|
||||||
# # hydraJobs = import ./hydra.nix { inherit inputs outputs; }; # TODO add hydra jobs here?
|
|
||||||
|
|
||||||
# packages = forEachSystem (pkgs: import ./pkgs {inherit pkgs;});
|
packages = forEachSystem (pkgs: import ./packages {inherit pkgs;});
|
||||||
# devShells = forEachSystem (pkgs: import ./shell.nix {inherit pkgs;});
|
devShells = forEachSystem (pkgs: import ./shell.nix {inherit pkgs;});
|
||||||
# formatter = forEachSystem (pkgs: pkgs.alejandra); # nix fmt *
|
formatter = forEachSystem (pkgs: pkgs.alejandra); # nix fmt *
|
||||||
|
|
||||||
# nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# # Main laptop
|
# Main laptop
|
||||||
# aspi = lib.nixosSystem {
|
aspi = lib.nixosSystem {
|
||||||
# modules = [
|
modules = [
|
||||||
# ./hosts/aspi
|
./hosts/aspi
|
||||||
# ];
|
];
|
||||||
# specialArgs = {
|
specialArgs = {
|
||||||
# inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
# };
|
pwd = "${self}";
|
||||||
# };
|
};
|
||||||
# # Piano raspberry pi
|
};
|
||||||
# # pianonix = lib.nixosSystem {
|
kardorf = lib.nixosSystem {
|
||||||
# # modules = [./hosts/pianonix];
|
modules = [./hosts/kardorf];
|
||||||
# # specialArgs = {
|
specialArgs = {
|
||||||
# # inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
# # };
|
pwd = "${self}";
|
||||||
# # };
|
};
|
||||||
# kardorf = lib.nixosSystem {
|
};
|
||||||
# modules = [./hosts/kardorf];
|
builder = lib.nixosSystem {
|
||||||
# specialArgs = {
|
modules = [./hosts/builder];
|
||||||
# inherit inputs outputs;
|
specialArgs = {
|
||||||
# };
|
inherit inputs outputs;
|
||||||
# };
|
pwd = "${self}";
|
||||||
# builder = lib.nixosSystem {
|
};
|
||||||
# modules = [./hosts/builder];
|
};
|
||||||
# specialArgs = {
|
};
|
||||||
# inherit inputs outputs;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# # Standalone HM
|
# Standalone HM
|
||||||
# homeConfigurations = {
|
homeConfigurations = {
|
||||||
# # Main laptop
|
"julian@v3ms" = lib.homeManagerConfiguration {
|
||||||
# "julian@aspi" = lib.homeManagerConfiguration {
|
modules = [
|
||||||
# modules = [
|
./homes/julian/v3ms
|
||||||
# ./homes/julian/aspi.nix
|
./homes/julian/hm-standalone-config.nix
|
||||||
# ./homes/julian/hm-standalone-config.nix
|
];
|
||||||
# ];
|
pkgs = pkgsFor.x86_64-linux;
|
||||||
# pkgs = pkgsFor.x86_64-linux;
|
extraSpecialArgs = {
|
||||||
# extraSpecialArgs = {
|
inherit inputs outputs;
|
||||||
# inherit inputs outputs;
|
pwd = "${self}";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# # Media server (RPi)
|
"julian@quickstart" = lib.homeManagerConfiguration {
|
||||||
# # "julian@pianonix" = lib.homeManagerConfiguration {
|
modules = [
|
||||||
# # modules = [
|
./homes/julian/quickstart.nix
|
||||||
# # ./homes/julian/pianonix.nix
|
./homes/julian/hm-standalone-config.nix
|
||||||
# # ./homes/julian/hm-standalone-config.nix
|
];
|
||||||
# # ];
|
pkgs = pkgsFor.x86_64-linux;
|
||||||
# # pkgs = pkgsFor.aarch64-linux;
|
extraSpecialArgs = {
|
||||||
# # extraSpecialArgs = {
|
inherit inputs outputs;
|
||||||
# # inherit inputs outputs;
|
pwd = "${self}";
|
||||||
# # };
|
};
|
||||||
# # };
|
};
|
||||||
# "julian@kardorf" = lib.homeManagerConfiguration {
|
};
|
||||||
# modules = [
|
|
||||||
# ./homes/julian/kardorf.nix
|
|
||||||
# ./homes/julian/hm-standalone-config.nix
|
|
||||||
# ];
|
|
||||||
# pkgs = pkgsFor.x86_64-linux;
|
|
||||||
# extraSpecialArgs = {
|
|
||||||
# inherit inputs outputs;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# "julian@v3ms" = lib.homeManagerConfiguration {
|
|
||||||
# modules = [
|
|
||||||
# ./homes/julian/v3ms
|
|
||||||
# ./homes/julian/hm-standalone-config.nix
|
|
||||||
# ];
|
|
||||||
# pkgs = pkgsFor.x86_64-linux;
|
|
||||||
# extraSpecialArgs = {
|
|
||||||
# inherit inputs outputs;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# "julian@quickstart" = lib.homeManagerConfiguration {
|
|
||||||
# modules = [
|
|
||||||
# ./homes/julian/quickstart.nix
|
|
||||||
# ./homes/julian/hm-standalone-config.nix
|
|
||||||
# ];
|
|
||||||
# pkgs = pkgsFor.x86_64-linux;
|
|
||||||
# extraSpecialArgs = {
|
|
||||||
# inherit inputs outputs;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# # deploy-rs node configuration
|
# deploy-rs node configuration
|
||||||
# deploy.nodes = {
|
deploy.nodes = {
|
||||||
# # pianonix = {
|
builder = {
|
||||||
# # hostname = "pianonix.local";
|
hostname = "builder.julian-mutter.de";
|
||||||
# # profiles.system = {
|
profiles.system = {
|
||||||
# # sshUser = "root";
|
sshUser = "root";
|
||||||
# # user = "root";
|
user = "root";
|
||||||
# # path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pianonix;
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.builder;
|
||||||
# # confirmTimeout = 90; # default: 30s; raspberrypi takes a little longer restarting services
|
remoteBuild = true;
|
||||||
# # };
|
};
|
||||||
# # };
|
};
|
||||||
|
};
|
||||||
# builder = {
|
};
|
||||||
# hostname = "builder.julian-mutter.de";
|
|
||||||
# profiles.system = {
|
|
||||||
# sshUser = "root";
|
|
||||||
# user = "root";
|
|
||||||
# path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.builder;
|
|
||||||
# remoteBuild = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
# # substitutes: nixos-generate --flake .#pianonix -f sd-aarch64 --system aarch64-linux
|
|
||||||
# pianonix-image = inputs.nixos-generators.nixosGenerate {
|
|
||||||
# system = "aarch64-linux";
|
|
||||||
# format = "sd-aarch64";
|
|
||||||
# modules = [./hosts/pianonix];
|
|
||||||
# specialArgs = {
|
|
||||||
# inherit inputs outputs;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
|
mise.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ in {
|
|||||||
sqlite
|
sqlite
|
||||||
|
|
||||||
# Code formatters for use with doom emacs
|
# Code formatters for use with doom emacs
|
||||||
nixfmt-rfc-style # nix
|
nixfmt # nix
|
||||||
alejandra # nix
|
alejandra # nix
|
||||||
|
|
||||||
nixd # nix lsp
|
nixd # nix lsp
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
with lib; {
|
with lib; {
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/starship.toml".source = ./starship.toml;
|
# ".config/starship.toml".source = ./starship.toml;
|
||||||
".config/fish/conf.d/last-working-dir.fish".source = ./last-working-dir.fish;
|
".config/fish/conf.d/last-working-dir.fish".source = ./last-working-dir.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -7,6 +7,8 @@ with lib; {
|
|||||||
fonts.fontconfig.enable = true; # required to autoload fonts from packages
|
fonts.fontconfig.enable = true; # required to autoload fonts from packages
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
|
nerd-fonts.jetbrains-mono
|
||||||
|
|
||||||
font-awesome
|
font-awesome
|
||||||
dejavu_fonts
|
dejavu_fonts
|
||||||
noto-fonts
|
noto-fonts
|
||||||
@@ -16,5 +18,7 @@ with lib; {
|
|||||||
fira-code
|
fira-code
|
||||||
fira-code-symbols
|
fira-code-symbols
|
||||||
source-code-pro
|
source-code-pro
|
||||||
|
source-sans
|
||||||
|
roboto
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin-mocha";
|
# theme = "catppuccin-mocha";
|
||||||
font-size = 12;
|
font-size = 12;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,149 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
# Apply lib.mkDefault to a whole attrset recursively, used for the noctalia config
|
||||||
|
mkDefaultsRec = value:
|
||||||
|
if builtins.isAttrs value
|
||||||
|
then lib.mapAttrs (_: mkDefaultsRec) value
|
||||||
|
else if builtins.isList value
|
||||||
|
then map mkDefaultsRec value
|
||||||
|
else lib.mkDefault value;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
# inputs.hyprland.homeManagerModules.default
|
||||||
|
# ./waybar
|
||||||
|
# ./wofi
|
||||||
|
# ./mako
|
||||||
|
# ./hyprlock
|
||||||
|
./wlogout
|
||||||
|
# ../gammastep
|
||||||
|
|
||||||
|
# ./swayidle.nix
|
||||||
|
./swaylock.nix
|
||||||
|
./waypipe.nix
|
||||||
|
|
||||||
|
# ./hyprbars.nix
|
||||||
|
inputs.noctalia.homeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
||||||
|
config.hyprland = {
|
||||||
|
default = [
|
||||||
|
"wlr"
|
||||||
|
"gtk"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
hyprcursor.enable = true;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.imv.enable = true; # TODO: what is that
|
||||||
|
|
||||||
|
programs.noctalia-shell = {
|
||||||
|
enable = true;
|
||||||
|
# noctalia-shell ipc call state all | jq .settings | xclip
|
||||||
|
# mkDefaultsRec used so that stylix can overwrite style options
|
||||||
|
settings = mkDefaultsRec (builtins.fromJSON (builtins.readFile ./noctalia.json));
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
hyprpicker
|
||||||
|
hyprcursor
|
||||||
|
brightnessctl
|
||||||
|
playerctl
|
||||||
|
frajul.hyprshot-gui
|
||||||
|
frajul.wl-ocr
|
||||||
|
|
||||||
|
wf-recorder
|
||||||
|
wl-clipboard
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "toggle-screen-mirroring" (
|
||||||
|
builtins.readFile ./toggle-screen-mirroring.sh
|
||||||
|
))
|
||||||
|
|
||||||
|
(pkgs.writeShellScriptBin "correct-workspace-locations" (
|
||||||
|
lib.concatStringsSep "\n" (
|
||||||
|
builtins.concatLists (
|
||||||
|
map (
|
||||||
|
monitor:
|
||||||
|
map (ws: "hyprctl dispatch 'hl.dsp.workspace.move({workspace=\"${ws}\", monitor=\"${monitor.name}\"})'") monitor.workspaces
|
||||||
|
)
|
||||||
|
config.monitors
|
||||||
|
)
|
||||||
|
)
|
||||||
|
))
|
||||||
|
];
|
||||||
|
|
||||||
|
services.cliphist = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
|
QT_QPA_PLATFORM = "wayland";
|
||||||
|
LIBSEAT_BACKEND = "logind";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.network-manager-applet.enable = true;
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
configType = "lua";
|
||||||
|
extraConfig =
|
||||||
|
# Variables controllable by nix
|
||||||
|
''
|
||||||
|
-- Nix controlled variables
|
||||||
|
local terminal = "${config.terminal}"
|
||||||
|
local fileManager = "pcmanfm"
|
||||||
|
-- local menu = "wofi --show drun,run"
|
||||||
|
local menu = "noctalia-shell ipc call launcher toggle"
|
||||||
|
local calculator = "qalculate-gtk"
|
||||||
|
local browser = "firefox"
|
||||||
|
local editor = "emacs"
|
||||||
|
''
|
||||||
|
+ "-- Main config from `hyprland.lua`\n"
|
||||||
|
+ builtins.readFile ./hyprland.lua
|
||||||
|
+ "-- Assign workspaces to monitors\n"
|
||||||
|
+ lib.concatStringsSep "\n" (
|
||||||
|
builtins.concatLists (
|
||||||
|
map (
|
||||||
|
monitor:
|
||||||
|
map (ws: "hl.workspace_rule({ workspace = \"${ws}\", monitor = \"${monitor.name}\"})") monitor.workspaces
|
||||||
|
)
|
||||||
|
config.monitors
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
# Same as default, but stop graphical-session too
|
||||||
|
extraCommands = lib.mkBefore [
|
||||||
|
"systemctl --user stop graphical-session.target"
|
||||||
|
"systemctl --user start hyprland-session.target"
|
||||||
|
];
|
||||||
|
variables = [
|
||||||
|
"DISPLAY"
|
||||||
|
"HYPRLAND_INSTANCE_SIGNATURE"
|
||||||
|
"WAYLAND_DISPLAY"
|
||||||
|
"XDG_CURRENT_DESKTOP"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
xwayland.enable = true;
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
# hyprlandPlugins.hyprbars
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,348 @@
|
|||||||
|
------------------
|
||||||
|
---- MONITORS ----
|
||||||
|
------------------
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
||||||
|
hl.monitor({
|
||||||
|
output = "",
|
||||||
|
mode = "preferred",
|
||||||
|
position = "auto",
|
||||||
|
scale = "auto",
|
||||||
|
mirror = "",
|
||||||
|
})
|
||||||
|
|
||||||
|
-------------------
|
||||||
|
---- AUTOSTART ----
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
|
||||||
|
hl.on("hyprland.start", function()
|
||||||
|
-- hl.exec_cmd("waybar")
|
||||||
|
hl.exec_cmd("noctalia-shell")
|
||||||
|
hl.exec_cmd("firefox")
|
||||||
|
end)
|
||||||
|
hl.on("config.reloaded", function()
|
||||||
|
hl.exec_cmd("correct-workspace-locations")
|
||||||
|
end)
|
||||||
|
|
||||||
|
-------------------------------
|
||||||
|
---- ENVIRONMENT VARIABLES ----
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
||||||
|
hl.env("TERMINAL", terminal) -- e.g. for emacs
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
----- PERMISSIONS -----
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/
|
||||||
|
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||||
|
-- for security reasons
|
||||||
|
|
||||||
|
-- hl.config({
|
||||||
|
-- ecosystem = {
|
||||||
|
-- enforce_permissions = true,
|
||||||
|
-- },
|
||||||
|
-- })
|
||||||
|
|
||||||
|
-- hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow")
|
||||||
|
-- hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow")
|
||||||
|
-- hl.permission("/usr/(bin|local/bin)/hyprpm", "plugin", "allow")
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
---- LOOK AND FEEL ----
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
-- Refer to https://wiki.hypr.land/Configuring/Basics/Variables/
|
||||||
|
hl.config({
|
||||||
|
general = {
|
||||||
|
gaps_in = 5,
|
||||||
|
gaps_out = 5,
|
||||||
|
|
||||||
|
border_size = 2,
|
||||||
|
|
||||||
|
-- Set to true to enable resizing windows by clicking and dragging on borders and gaps
|
||||||
|
resize_on_border = false,
|
||||||
|
|
||||||
|
-- Please see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Tearing/ before you turn this on
|
||||||
|
allow_tearing = false,
|
||||||
|
|
||||||
|
layout = "dwindle",
|
||||||
|
},
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
-- power saving
|
||||||
|
shadow = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- power saving
|
||||||
|
blur = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
disable_autoreload = true,
|
||||||
|
},
|
||||||
|
cursor = {
|
||||||
|
no_hardware_cursors = 1, -- disable hardware cursors to fix tearing on kardorf
|
||||||
|
},
|
||||||
|
render = {
|
||||||
|
direct_scanout = 1,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Default curves and animations, see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
|
||||||
|
hl.curve("easeOutQuint", { type = "bezier", points = { { 0.23, 1 }, { 0.32, 1 } } })
|
||||||
|
hl.curve("easeInOutCubic", { type = "bezier", points = { { 0.65, 0.05 }, { 0.36, 1 } } })
|
||||||
|
hl.curve("linear", { type = "bezier", points = { { 0, 0 }, { 1, 1 } } })
|
||||||
|
hl.curve("almostLinear", { type = "bezier", points = { { 0.5, 0.5 }, { 0.75, 1 } } })
|
||||||
|
hl.curve("quick", { type = "bezier", points = { { 0.15, 0 }, { 0.1, 1 } } })
|
||||||
|
|
||||||
|
-- Default springs
|
||||||
|
hl.curve("easy", { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "global", enabled = false })
|
||||||
|
hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" })
|
||||||
|
hl.animation({ leaf = "windows", enabled = true, speed = 4.79, spring = "easy" })
|
||||||
|
hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, spring = "easy", style = "popin 87%" })
|
||||||
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" })
|
||||||
|
hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" })
|
||||||
|
hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" })
|
||||||
|
hl.animation({ leaf = "fade", enabled = true, speed = 3.03, bezier = "quick" })
|
||||||
|
hl.animation({ leaf = "layers", enabled = true, speed = 3.81, bezier = "easeOutQuint" })
|
||||||
|
hl.animation({ leaf = "layersIn", enabled = true, speed = 4, bezier = "easeOutQuint", style = "fade" })
|
||||||
|
hl.animation({ leaf = "layersOut", enabled = true, speed = 1.5, bezier = "linear", style = "fade" })
|
||||||
|
hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 1.79, bezier = "almostLinear" })
|
||||||
|
hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.39, bezier = "almostLinear" })
|
||||||
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
|
||||||
|
hl.animation({ leaf = "workspacesIn", enabled = true, speed = 1.21, bezier = "almostLinear", style = "fade" })
|
||||||
|
hl.animation({ leaf = "workspacesOut", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
|
||||||
|
hl.animation({ leaf = "zoomFactor", enabled = true, speed = 7, bezier = "quick" })
|
||||||
|
|
||||||
|
-- Ref https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
||||||
|
-- "Smart gaps" / "No gaps when only"
|
||||||
|
hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
|
||||||
|
hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ for more
|
||||||
|
hl.config({
|
||||||
|
dwindle = {
|
||||||
|
preserve_split = false,
|
||||||
|
smart_split = false,
|
||||||
|
smart_resizing = true,
|
||||||
|
force_split = 2,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
----------------
|
||||||
|
---- MISC ----
|
||||||
|
----------------
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = -1, -- Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
|
disable_hyprland_logo = false, -- If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
---------------
|
||||||
|
---- INPUT ----
|
||||||
|
---------------
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
input = {
|
||||||
|
kb_layout = "de",
|
||||||
|
follow_mouse = 1,
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
---------------------
|
||||||
|
---- KEYBINDINGS ----
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
local mainMod = "SUPER"
|
||||||
|
|
||||||
|
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
|
||||||
|
hl.bind(mainMod .. " + RETURN", hl.dsp.exec_cmd(terminal))
|
||||||
|
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager))
|
||||||
|
hl.bind(mainMod .. " + D", hl.dsp.exec_cmd(menu))
|
||||||
|
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(browser))
|
||||||
|
hl.bind(mainMod .. " + C", hl.dsp.exec_cmd(calculator))
|
||||||
|
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd(editor))
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + X", hl.dsp.window.close())
|
||||||
|
hl.bind(mainMod .. " + SHIFT + E", hl.dsp.exec_cmd("wlogout -p layer-shell"))
|
||||||
|
hl.bind(mainMod .. " + ESCAPE", hl.dsp.exec_cmd("wlogout -p layer-shell"))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + R", hl.dsp.exec_cmd("hyprctl reload"))
|
||||||
|
hl.bind(mainMod .. " + PRINT", hl.dsp.exec_cmd("hyprshot-gui"))
|
||||||
|
hl.bind("PRINT", hl.dsp.exec_cmd("hyprshot-gui"))
|
||||||
|
hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("toggle-screen-mirroring; correct-workspace-locations"))
|
||||||
|
hl.bind(mainMod .. " + TAB", hl.dsp.exec_cmd("swaylock --daemonize"))
|
||||||
|
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("makoctl dismiss"))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + W", hl.dsp.exec_cmd("makoctl restore"))
|
||||||
|
hl.bind(mainMod .. " + R", hl.dsp.submap("resize"))
|
||||||
|
hl.bind(mainMod .. " + O", hl.dsp.submap("open"))
|
||||||
|
|
||||||
|
-- hl.bind(mainMod .. " + P", hl.dsp.window.pseudo())
|
||||||
|
-- hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) -- dwindle only
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + SHIFT + SPACE", hl.dsp.window.float({ action = "toggle" }))
|
||||||
|
hl.bind(mainMod .. " + SPACE", hl.dsp.focus({ window = "floating" }))
|
||||||
|
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ action = "toggle" }))
|
||||||
|
|
||||||
|
-- Move focus with mainMod + arrow keys
|
||||||
|
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
|
||||||
|
hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
|
||||||
|
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))
|
||||||
|
hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" }))
|
||||||
|
hl.bind(mainMod .. " + H", hl.dsp.focus({ direction = "left" }))
|
||||||
|
hl.bind(mainMod .. " + L", hl.dsp.focus({ direction = "right" }))
|
||||||
|
hl.bind(mainMod .. " + K", hl.dsp.focus({ direction = "up" }))
|
||||||
|
hl.bind(mainMod .. " + J", hl.dsp.focus({ direction = "down" }))
|
||||||
|
|
||||||
|
-- Move window with mainMod + SHIFT + arrow keys
|
||||||
|
hl.bind(mainMod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + right", hl.dsp.window.move({ direction = "right" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + up", hl.dsp.window.move({ direction = "up" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + down", hl.dsp.window.move({ direction = "down" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + H", hl.dsp.window.move({ direction = "left" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + L", hl.dsp.window.move({ direction = "right" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }))
|
||||||
|
|
||||||
|
for i = 1, 10 do
|
||||||
|
local key = i % 10 -- 10 maps to key 0
|
||||||
|
-- Switch workspaces
|
||||||
|
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
|
||||||
|
-- Move active window to a workspace
|
||||||
|
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
||||||
|
-- Move active window to a workspace without following
|
||||||
|
hl.bind(mainMod .. " + CTRL + " .. key, hl.dsp.window.move({ workspace = i }))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Example special workspace (scratchpad)
|
||||||
|
-- hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
|
||||||
|
-- hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
|
||||||
|
|
||||||
|
-- Scroll through existing workspaces with mainMod + scroll
|
||||||
|
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||||
|
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||||
|
|
||||||
|
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true }) -- leftclick
|
||||||
|
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true }) -- rightclick
|
||||||
|
|
||||||
|
-- Laptop multimedia keys for volume and LCD brightness
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioRaiseVolume",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioLowerVolume",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioMute",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioMicMute",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
||||||
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
||||||
|
|
||||||
|
-- Requires playerctl
|
||||||
|
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
|
||||||
|
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||||
|
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||||
|
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
|
||||||
|
|
||||||
|
hl.define_submap("resize", function()
|
||||||
|
-- Set repeating binds for resizing the active window.
|
||||||
|
hl.bind("right", hl.dsp.window.resize({ x = 20, y = 0, relative = true }), { repeating = true })
|
||||||
|
hl.bind("left", hl.dsp.window.resize({ x = -20, y = 0, relative = true }), { repeating = true })
|
||||||
|
hl.bind("up", hl.dsp.window.resize({ x = 0, y = 20, relative = true }), { repeating = true })
|
||||||
|
hl.bind("down", hl.dsp.window.resize({ x = 0, y = -20, relative = true }), { repeating = true })
|
||||||
|
hl.bind("H", hl.dsp.window.resize({ x = 20, y = 0, relative = true }), { repeating = true })
|
||||||
|
hl.bind("L", hl.dsp.window.resize({ x = -20, y = 0, relative = true }), { repeating = true })
|
||||||
|
hl.bind("K", hl.dsp.window.resize({ x = 0, y = 20, relative = true }), { repeating = true })
|
||||||
|
hl.bind("J", hl.dsp.window.resize({ x = 0, y = -20, relative = true }), { repeating = true })
|
||||||
|
|
||||||
|
-- Use `reset` to go back to the global submap
|
||||||
|
hl.bind("escape", hl.dsp.submap("reset"))
|
||||||
|
end)
|
||||||
|
|
||||||
|
hl.define_submap("open", "reset", function()
|
||||||
|
hl.bind("E", hl.dsp.exec_cmd("emacs"))
|
||||||
|
hl.bind("M", hl.dsp.exec_cmd("open-messaging"))
|
||||||
|
hl.bind("B", hl.dsp.exec_cmd("firefox"))
|
||||||
|
|
||||||
|
-- Use `reset` to go back to the global submap
|
||||||
|
hl.bind("escape", hl.dsp.submap("reset"))
|
||||||
|
end)
|
||||||
|
|
||||||
|
--------------------------------
|
||||||
|
---- WINDOWS AND WORKSPACES ----
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
||||||
|
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
||||||
|
|
||||||
|
-- Default workspaces for certain windows
|
||||||
|
hl.window_rule({ match = { class = "firefox" }, workspace = "1" })
|
||||||
|
hl.window_rule({ match = { class = "Zotero" }, workspace = "8" })
|
||||||
|
hl.window_rule({ match = { class = "nheko" }, workspace = "9" })
|
||||||
|
hl.window_rule({ match = { class = "element" }, workspace = "9" })
|
||||||
|
hl.window_rule({ match = { class = "discord" }, workspace = "9" })
|
||||||
|
hl.window_rule({ match = { class = "org.telegram.desktop" }, workspace = "9" })
|
||||||
|
hl.window_rule({ match = { class = "thunderbird" }, workspace = "10" })
|
||||||
|
|
||||||
|
-- Float calculator
|
||||||
|
hl.window_rule({ match = { class = "qalculate-gtk" }, float = true })
|
||||||
|
|
||||||
|
-- Example window rules that are useful
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
-- Ignore maximize requests from all apps.
|
||||||
|
name = "suppress-maximize-events",
|
||||||
|
match = { class = ".*" },
|
||||||
|
|
||||||
|
suppress_event = "maximize",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
-- Fix some dragging issues with XWayland
|
||||||
|
name = "fix-xwayland-drags",
|
||||||
|
match = {
|
||||||
|
class = "^$",
|
||||||
|
title = "^$",
|
||||||
|
xwayland = true,
|
||||||
|
float = true,
|
||||||
|
fullscreen = false,
|
||||||
|
pin = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
no_focus = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Disable animations for selection, fixes screenshots
|
||||||
|
hl.layer_rule({
|
||||||
|
name = "no-anim-overlay",
|
||||||
|
match = { namespace = "^my-overlay$" }, -- selection
|
||||||
|
no_anim = true,
|
||||||
|
})
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
programs.hyprlock.enable = true;
|
||||||
|
programs.hyprlock.settings = {
|
||||||
|
general = {
|
||||||
|
disable_loading_bar = true;
|
||||||
|
hide_cursor = true;
|
||||||
|
ignore_empty_input = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
input-field = [
|
||||||
|
{
|
||||||
|
size = "200, 50";
|
||||||
|
position = "0, -80";
|
||||||
|
monitor = "";
|
||||||
|
dots_center = true;
|
||||||
|
fade_on_empty = false;
|
||||||
|
outline_thickness = 5;
|
||||||
|
placeholder_text = "Password...";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [libnotify];
|
||||||
|
|
||||||
|
services.mako = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
defaultTimeout = "5000"; # milliseconds, can be overwritten by notification sender
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,646 @@
|
|||||||
|
{
|
||||||
|
"settingsVersion": 59,
|
||||||
|
"bar": {
|
||||||
|
"barType": "simple",
|
||||||
|
"position": "bottom",
|
||||||
|
"monitors": [],
|
||||||
|
"density": "default",
|
||||||
|
"showOutline": false,
|
||||||
|
"showCapsule": false,
|
||||||
|
"capsuleOpacity": 1,
|
||||||
|
"capsuleColorKey": "none",
|
||||||
|
"widgetSpacing": 6,
|
||||||
|
"contentPadding": 2,
|
||||||
|
"fontScale": 1,
|
||||||
|
"enableExclusionZoneInset": false,
|
||||||
|
"backgroundOpacity": 1,
|
||||||
|
"useSeparateOpacity": false,
|
||||||
|
"marginVertical": 4,
|
||||||
|
"marginHorizontal": 4,
|
||||||
|
"frameThickness": 8,
|
||||||
|
"frameRadius": 12,
|
||||||
|
"outerCorners": false,
|
||||||
|
"hideOnOverview": false,
|
||||||
|
"displayMode": "always_visible",
|
||||||
|
"autoHideDelay": 500,
|
||||||
|
"autoShowDelay": 150,
|
||||||
|
"showOnWorkspaceSwitch": true,
|
||||||
|
"widgets": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"characterCount": 2,
|
||||||
|
"colorizeIcons": false,
|
||||||
|
"emptyColor": "secondary",
|
||||||
|
"enableScrollWheel": true,
|
||||||
|
"focusedColor": "primary",
|
||||||
|
"followFocusedScreen": false,
|
||||||
|
"fontWeight": "bold",
|
||||||
|
"groupedBorderOpacity": 1,
|
||||||
|
"hideUnoccupied": false,
|
||||||
|
"iconScale": 0.8,
|
||||||
|
"id": "Workspace",
|
||||||
|
"labelMode": "index",
|
||||||
|
"occupiedColor": "secondary",
|
||||||
|
"pillSize": 0.8,
|
||||||
|
"showApplications": false,
|
||||||
|
"showApplicationsHover": false,
|
||||||
|
"showBadge": true,
|
||||||
|
"showLabelsOnlyWhenOccupied": false,
|
||||||
|
"unfocusedIconsOpacity": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"center": [],
|
||||||
|
"right": [
|
||||||
|
{
|
||||||
|
"compactMode": false,
|
||||||
|
"diskPath": "/",
|
||||||
|
"iconColor": "none",
|
||||||
|
"id": "SystemMonitor",
|
||||||
|
"showCpuCores": false,
|
||||||
|
"showCpuFreq": false,
|
||||||
|
"showCpuTemp": false,
|
||||||
|
"showCpuUsage": true,
|
||||||
|
"showDiskAvailable": true,
|
||||||
|
"showDiskUsage": true,
|
||||||
|
"showDiskUsageAsPercent": false,
|
||||||
|
"showGpuTemp": false,
|
||||||
|
"showLoadAverage": false,
|
||||||
|
"showMemoryAsPercent": true,
|
||||||
|
"showMemoryUsage": true,
|
||||||
|
"showNetworkStats": false,
|
||||||
|
"showSwapUsage": false,
|
||||||
|
"textColor": "none",
|
||||||
|
"useMonospaceFont": true,
|
||||||
|
"usePadding": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"compactMode": false,
|
||||||
|
"diskPath": "/",
|
||||||
|
"iconColor": "none",
|
||||||
|
"id": "SystemMonitor",
|
||||||
|
"showCpuCores": false,
|
||||||
|
"showCpuFreq": false,
|
||||||
|
"showCpuTemp": false,
|
||||||
|
"showCpuUsage": false,
|
||||||
|
"showDiskAvailable": false,
|
||||||
|
"showDiskUsage": false,
|
||||||
|
"showDiskUsageAsPercent": false,
|
||||||
|
"showGpuTemp": false,
|
||||||
|
"showLoadAverage": false,
|
||||||
|
"showMemoryAsPercent": false,
|
||||||
|
"showMemoryUsage": false,
|
||||||
|
"showNetworkStats": true,
|
||||||
|
"showSwapUsage": false,
|
||||||
|
"textColor": "none",
|
||||||
|
"useMonospaceFont": true,
|
||||||
|
"usePadding": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"displayMode": "alwaysShow",
|
||||||
|
"iconColor": "none",
|
||||||
|
"id": "Volume",
|
||||||
|
"middleClickCommand": "pwvucontrol || pavucontrol",
|
||||||
|
"textColor": "none"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"deviceNativePath": "__default__",
|
||||||
|
"displayMode": "graphic-clean",
|
||||||
|
"hideIfIdle": false,
|
||||||
|
"hideIfNotDetected": true,
|
||||||
|
"id": "Battery",
|
||||||
|
"showNoctaliaPerformance": false,
|
||||||
|
"showPowerProfiles": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"clockColor": "none",
|
||||||
|
"customFont": "",
|
||||||
|
"formatHorizontal": "ddd, dd.MM. HH:mm:ss",
|
||||||
|
"formatVertical": "HH mm - dd MM",
|
||||||
|
"id": "Clock",
|
||||||
|
"tooltipFormat": "HH:mm ddd, MMM dd",
|
||||||
|
"useCustomFont": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"blacklist": [],
|
||||||
|
"chevronColor": "none",
|
||||||
|
"colorizeIcons": false,
|
||||||
|
"drawerEnabled": false,
|
||||||
|
"hidePassive": false,
|
||||||
|
"id": "Tray",
|
||||||
|
"pinned": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mouseWheelAction": "workspace",
|
||||||
|
"reverseScroll": false,
|
||||||
|
"mouseWheelWrap": true,
|
||||||
|
"middleClickAction": "launcherPanel",
|
||||||
|
"middleClickFollowMouse": false,
|
||||||
|
"middleClickCommand": "",
|
||||||
|
"rightClickAction": "controlCenter",
|
||||||
|
"rightClickFollowMouse": true,
|
||||||
|
"rightClickCommand": "",
|
||||||
|
"screenOverrides": []
|
||||||
|
},
|
||||||
|
"general": {
|
||||||
|
"avatarImage": "/home/julian/.face",
|
||||||
|
"dimmerOpacity": 0.2,
|
||||||
|
"showScreenCorners": false,
|
||||||
|
"forceBlackScreenCorners": false,
|
||||||
|
"scaleRatio": 1,
|
||||||
|
"radiusRatio": 1,
|
||||||
|
"iRadiusRatio": 1,
|
||||||
|
"boxRadiusRatio": 1,
|
||||||
|
"screenRadiusRatio": 1,
|
||||||
|
"animationSpeed": 1,
|
||||||
|
"animationDisabled": false,
|
||||||
|
"compactLockScreen": false,
|
||||||
|
"lockScreenAnimations": false,
|
||||||
|
"lockOnSuspend": true,
|
||||||
|
"showSessionButtonsOnLockScreen": true,
|
||||||
|
"showHibernateOnLockScreen": false,
|
||||||
|
"enableLockScreenMediaControls": false,
|
||||||
|
"enableShadows": true,
|
||||||
|
"enableBlurBehind": true,
|
||||||
|
"shadowDirection": "bottom_right",
|
||||||
|
"shadowOffsetX": 2,
|
||||||
|
"shadowOffsetY": 3,
|
||||||
|
"language": "",
|
||||||
|
"allowPanelsOnScreenWithoutBar": true,
|
||||||
|
"showChangelogOnStartup": true,
|
||||||
|
"telemetryEnabled": false,
|
||||||
|
"enableLockScreenCountdown": false,
|
||||||
|
"lockScreenCountdownDuration": 10000,
|
||||||
|
"autoStartAuth": false,
|
||||||
|
"allowPasswordWithFprintd": false,
|
||||||
|
"clockStyle": "custom",
|
||||||
|
"clockFormat": "hh\\nmm",
|
||||||
|
"passwordChars": false,
|
||||||
|
"lockScreenMonitors": [],
|
||||||
|
"lockScreenBlur": 0,
|
||||||
|
"lockScreenTint": 0,
|
||||||
|
"keybinds": {
|
||||||
|
"keyUp": [
|
||||||
|
"Up"
|
||||||
|
],
|
||||||
|
"keyDown": [
|
||||||
|
"Down"
|
||||||
|
],
|
||||||
|
"keyLeft": [
|
||||||
|
"Left"
|
||||||
|
],
|
||||||
|
"keyRight": [
|
||||||
|
"Right"
|
||||||
|
],
|
||||||
|
"keyEnter": [
|
||||||
|
"Return",
|
||||||
|
"Enter"
|
||||||
|
],
|
||||||
|
"keyEscape": [
|
||||||
|
"Esc"
|
||||||
|
],
|
||||||
|
"keyRemove": [
|
||||||
|
"Del"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"reverseScroll": false,
|
||||||
|
"smoothScrollEnabled": true
|
||||||
|
},
|
||||||
|
"ui": {
|
||||||
|
"fontDefault": "DejaVu Sans",
|
||||||
|
"fontFixed": "DejaVu Sans Mono",
|
||||||
|
"fontDefaultScale": 1,
|
||||||
|
"fontFixedScale": 1,
|
||||||
|
"tooltipsEnabled": true,
|
||||||
|
"scrollbarAlwaysVisible": true,
|
||||||
|
"boxBorderEnabled": false,
|
||||||
|
"panelBackgroundOpacity": 1,
|
||||||
|
"translucentWidgets": false,
|
||||||
|
"panelsAttachedToBar": true,
|
||||||
|
"settingsPanelMode": "attached",
|
||||||
|
"settingsPanelSideBarCardStyle": false
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"name": "",
|
||||||
|
"weatherEnabled": true,
|
||||||
|
"weatherShowEffects": true,
|
||||||
|
"weatherTaliaMascotAlways": false,
|
||||||
|
"useFahrenheit": false,
|
||||||
|
"use12hourFormat": false,
|
||||||
|
"showWeekNumberInCalendar": false,
|
||||||
|
"showCalendarEvents": true,
|
||||||
|
"showCalendarWeather": true,
|
||||||
|
"analogClockInCalendar": false,
|
||||||
|
"firstDayOfWeek": -1,
|
||||||
|
"hideWeatherTimezone": false,
|
||||||
|
"hideWeatherCityName": false,
|
||||||
|
"autoLocate": false
|
||||||
|
},
|
||||||
|
"calendar": {
|
||||||
|
"cards": [
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "calendar-header-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "calendar-month-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "weather-card"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"wallpaper": {
|
||||||
|
"enabled": false,
|
||||||
|
"overviewEnabled": false,
|
||||||
|
"directory": "/home/julian/Pictures/Wallpapers",
|
||||||
|
"monitorDirectories": [],
|
||||||
|
"enableMultiMonitorDirectories": false,
|
||||||
|
"showHiddenFiles": false,
|
||||||
|
"viewMode": "single",
|
||||||
|
"setWallpaperOnAllMonitors": true,
|
||||||
|
"linkLightAndDarkWallpapers": true,
|
||||||
|
"fillMode": "crop",
|
||||||
|
"fillColor": "#000000",
|
||||||
|
"useSolidColor": false,
|
||||||
|
"solidColor": "#1a1a2e",
|
||||||
|
"automationEnabled": false,
|
||||||
|
"wallpaperChangeMode": "random",
|
||||||
|
"randomIntervalSec": 300,
|
||||||
|
"transitionDuration": 1500,
|
||||||
|
"transitionType": [
|
||||||
|
"fade",
|
||||||
|
"disc",
|
||||||
|
"stripes",
|
||||||
|
"wipe",
|
||||||
|
"pixelate",
|
||||||
|
"honeycomb"
|
||||||
|
],
|
||||||
|
"skipStartupTransition": false,
|
||||||
|
"transitionEdgeSmoothness": 0.05,
|
||||||
|
"panelPosition": "follow_bar",
|
||||||
|
"hideWallpaperFilenames": false,
|
||||||
|
"useOriginalImages": false,
|
||||||
|
"overviewBlur": 0.4,
|
||||||
|
"overviewTint": 0.6,
|
||||||
|
"useWallhaven": false,
|
||||||
|
"wallhavenQuery": "",
|
||||||
|
"wallhavenSorting": "relevance",
|
||||||
|
"wallhavenOrder": "desc",
|
||||||
|
"wallhavenCategories": "111",
|
||||||
|
"wallhavenPurity": "100",
|
||||||
|
"wallhavenRatios": "",
|
||||||
|
"wallhavenApiKey": "",
|
||||||
|
"wallhavenResolutionMode": "atleast",
|
||||||
|
"wallhavenResolutionWidth": "",
|
||||||
|
"wallhavenResolutionHeight": "",
|
||||||
|
"sortOrder": "name",
|
||||||
|
"favorites": []
|
||||||
|
},
|
||||||
|
"appLauncher": {
|
||||||
|
"enableClipboardHistory": false,
|
||||||
|
"autoPasteClipboard": false,
|
||||||
|
"enableClipPreview": true,
|
||||||
|
"clipboardWrapText": true,
|
||||||
|
"enableClipboardSmartIcons": true,
|
||||||
|
"enableClipboardChips": true,
|
||||||
|
"clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store",
|
||||||
|
"clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store",
|
||||||
|
"position": "center",
|
||||||
|
"pinnedApps": [],
|
||||||
|
"sortByMostUsed": true,
|
||||||
|
"terminalCommand": "alacritty -e",
|
||||||
|
"customLaunchPrefixEnabled": false,
|
||||||
|
"customLaunchPrefix": "",
|
||||||
|
"viewMode": "list",
|
||||||
|
"showCategories": true,
|
||||||
|
"iconMode": "tabler",
|
||||||
|
"showIconBackground": false,
|
||||||
|
"enableSettingsSearch": true,
|
||||||
|
"enableWindowsSearch": true,
|
||||||
|
"enableSessionSearch": true,
|
||||||
|
"ignoreMouseInput": false,
|
||||||
|
"screenshotAnnotationTool": "",
|
||||||
|
"overviewLayer": false,
|
||||||
|
"density": "default"
|
||||||
|
},
|
||||||
|
"controlCenter": {
|
||||||
|
"position": "close_to_bar_button",
|
||||||
|
"diskPath": "/",
|
||||||
|
"shortcuts": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"id": "Network"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "Bluetooth"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "WallpaperSelector"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "NoctaliaPerformance"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"right": [
|
||||||
|
{
|
||||||
|
"id": "Notifications"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "PowerProfile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "KeepAwake"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "NightLight"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"cards": [
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "profile-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "shortcuts-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "audio-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": false,
|
||||||
|
"id": "brightness-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"id": "weather-card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"enabled": false,
|
||||||
|
"id": "media-sysmon-card"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"systemMonitor": {
|
||||||
|
"cpuWarningThreshold": 80,
|
||||||
|
"cpuCriticalThreshold": 90,
|
||||||
|
"tempWarningThreshold": 80,
|
||||||
|
"tempCriticalThreshold": 90,
|
||||||
|
"gpuWarningThreshold": 80,
|
||||||
|
"gpuCriticalThreshold": 90,
|
||||||
|
"memWarningThreshold": 80,
|
||||||
|
"memCriticalThreshold": 90,
|
||||||
|
"swapWarningThreshold": 80,
|
||||||
|
"swapCriticalThreshold": 90,
|
||||||
|
"diskWarningThreshold": 80,
|
||||||
|
"diskCriticalThreshold": 90,
|
||||||
|
"diskAvailWarningThreshold": 20,
|
||||||
|
"diskAvailCriticalThreshold": 10,
|
||||||
|
"batteryWarningThreshold": 20,
|
||||||
|
"batteryCriticalThreshold": 5,
|
||||||
|
"enableDgpuMonitoring": false,
|
||||||
|
"useCustomColors": false,
|
||||||
|
"warningColor": "",
|
||||||
|
"criticalColor": "",
|
||||||
|
"externalMonitor": "resources || missioncenter || jdsystemmonitor || corestats || system-monitoring-center || gnome-system-monitor || plasma-systemmonitor || mate-system-monitor || ukui-system-monitor || deepin-system-monitor || pantheon-system-monitor"
|
||||||
|
},
|
||||||
|
"noctaliaPerformance": {
|
||||||
|
"disableWallpaper": true,
|
||||||
|
"disableDesktopWidgets": true
|
||||||
|
},
|
||||||
|
"dock": {
|
||||||
|
"enabled": false,
|
||||||
|
"position": "bottom",
|
||||||
|
"displayMode": "auto_hide",
|
||||||
|
"dockType": "floating",
|
||||||
|
"backgroundOpacity": 1,
|
||||||
|
"floatingRatio": 1,
|
||||||
|
"size": 1,
|
||||||
|
"onlySameOutput": true,
|
||||||
|
"monitors": [],
|
||||||
|
"pinnedApps": [],
|
||||||
|
"colorizeIcons": false,
|
||||||
|
"showLauncherIcon": false,
|
||||||
|
"launcherPosition": "end",
|
||||||
|
"launcherUseDistroLogo": false,
|
||||||
|
"launcherIcon": "",
|
||||||
|
"launcherIconColor": "none",
|
||||||
|
"pinnedStatic": false,
|
||||||
|
"inactiveIndicators": false,
|
||||||
|
"groupApps": false,
|
||||||
|
"groupContextMenuMode": "extended",
|
||||||
|
"groupClickAction": "cycle",
|
||||||
|
"groupIndicatorStyle": "dots",
|
||||||
|
"deadOpacity": 0.6,
|
||||||
|
"animationSpeed": 1,
|
||||||
|
"sitOnFrame": false,
|
||||||
|
"showDockIndicator": false,
|
||||||
|
"indicatorThickness": 3,
|
||||||
|
"indicatorColor": "primary",
|
||||||
|
"indicatorOpacity": 0.6
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"bluetoothRssiPollingEnabled": false,
|
||||||
|
"bluetoothRssiPollIntervalMs": 60000,
|
||||||
|
"networkPanelView": "wifi",
|
||||||
|
"wifiDetailsViewMode": "grid",
|
||||||
|
"bluetoothDetailsViewMode": "grid",
|
||||||
|
"bluetoothHideUnnamedDevices": false,
|
||||||
|
"disableDiscoverability": false,
|
||||||
|
"bluetoothAutoConnect": true
|
||||||
|
},
|
||||||
|
"sessionMenu": {
|
||||||
|
"enableCountdown": false,
|
||||||
|
"countdownDuration": 10000,
|
||||||
|
"position": "center",
|
||||||
|
"showHeader": true,
|
||||||
|
"showKeybinds": true,
|
||||||
|
"largeButtonsStyle": false,
|
||||||
|
"largeButtonsLayout": "single-row",
|
||||||
|
"powerOptions": [
|
||||||
|
{
|
||||||
|
"action": "lock",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": true,
|
||||||
|
"keybind": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "suspend",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": false,
|
||||||
|
"keybind": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "hibernate",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": false,
|
||||||
|
"keybind": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "reboot",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": true,
|
||||||
|
"keybind": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "logout",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": true,
|
||||||
|
"keybind": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "shutdown",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": true,
|
||||||
|
"keybind": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "rebootToUefi",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": false,
|
||||||
|
"keybind": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "userspaceReboot",
|
||||||
|
"command": "",
|
||||||
|
"countdownEnabled": true,
|
||||||
|
"enabled": false,
|
||||||
|
"keybind": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"enabled": false,
|
||||||
|
"enableMarkdown": false,
|
||||||
|
"density": "default",
|
||||||
|
"monitors": [],
|
||||||
|
"location": "top_right",
|
||||||
|
"overlayLayer": true,
|
||||||
|
"backgroundOpacity": 1,
|
||||||
|
"respectExpireTimeout": false,
|
||||||
|
"lowUrgencyDuration": 3,
|
||||||
|
"normalUrgencyDuration": 8,
|
||||||
|
"criticalUrgencyDuration": 15,
|
||||||
|
"clearDismissed": true,
|
||||||
|
"saveToHistory": {
|
||||||
|
"low": true,
|
||||||
|
"normal": true,
|
||||||
|
"critical": true
|
||||||
|
},
|
||||||
|
"sounds": {
|
||||||
|
"enabled": false,
|
||||||
|
"volume": 0.5,
|
||||||
|
"separateSounds": false,
|
||||||
|
"criticalSoundFile": "",
|
||||||
|
"normalSoundFile": "",
|
||||||
|
"lowSoundFile": "",
|
||||||
|
"excludedApps": "discord,firefox,chrome,chromium,edge"
|
||||||
|
},
|
||||||
|
"enableMediaToast": false,
|
||||||
|
"enableKeyboardLayoutToast": true,
|
||||||
|
"enableBatteryToast": true
|
||||||
|
},
|
||||||
|
"osd": {
|
||||||
|
"enabled": true,
|
||||||
|
"location": "top_right",
|
||||||
|
"autoHideMs": 2000,
|
||||||
|
"overlayLayer": true,
|
||||||
|
"backgroundOpacity": 1,
|
||||||
|
"enabledTypes": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"monitors": []
|
||||||
|
},
|
||||||
|
"audio": {
|
||||||
|
"volumeStep": 5,
|
||||||
|
"volumeOverdrive": false,
|
||||||
|
"spectrumFrameRate": 30,
|
||||||
|
"visualizerType": "linear",
|
||||||
|
"spectrumMirrored": true,
|
||||||
|
"mprisBlacklist": [],
|
||||||
|
"preferredPlayer": "",
|
||||||
|
"volumeFeedback": false,
|
||||||
|
"volumeFeedbackSoundFile": ""
|
||||||
|
},
|
||||||
|
"brightness": {
|
||||||
|
"brightnessStep": 5,
|
||||||
|
"enforceMinimum": true,
|
||||||
|
"enableDdcSupport": false,
|
||||||
|
"backlightDeviceMappings": []
|
||||||
|
},
|
||||||
|
"colorSchemes": {
|
||||||
|
"useWallpaperColors": false,
|
||||||
|
"predefinedScheme": "Noctalia (default)",
|
||||||
|
"darkMode": true,
|
||||||
|
"schedulingMode": "off",
|
||||||
|
"manualSunrise": "06:30",
|
||||||
|
"manualSunset": "18:30",
|
||||||
|
"generationMethod": "tonal-spot",
|
||||||
|
"monitorForColors": "",
|
||||||
|
"syncGsettings": true
|
||||||
|
},
|
||||||
|
"templates": {
|
||||||
|
"activeTemplates": [],
|
||||||
|
"enableUserTheming": false
|
||||||
|
},
|
||||||
|
"nightLight": {
|
||||||
|
"enabled": true,
|
||||||
|
"forced": false,
|
||||||
|
"autoSchedule": true,
|
||||||
|
"nightTemp": "4000",
|
||||||
|
"dayTemp": "6500",
|
||||||
|
"manualSunrise": "06:30",
|
||||||
|
"manualSunset": "18:30"
|
||||||
|
},
|
||||||
|
"hooks": {
|
||||||
|
"enabled": false,
|
||||||
|
"wallpaperChange": "",
|
||||||
|
"darkModeChange": "",
|
||||||
|
"screenLock": "",
|
||||||
|
"screenUnlock": "",
|
||||||
|
"performanceModeEnabled": "",
|
||||||
|
"performanceModeDisabled": "",
|
||||||
|
"startup": "",
|
||||||
|
"session": "",
|
||||||
|
"colorGeneration": ""
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"autoUpdate": false,
|
||||||
|
"notifyUpdates": true
|
||||||
|
},
|
||||||
|
"idle": {
|
||||||
|
"enabled": false,
|
||||||
|
"screenOffTimeout": 600,
|
||||||
|
"lockTimeout": 660,
|
||||||
|
"suspendTimeout": 1800,
|
||||||
|
"fadeDuration": 5,
|
||||||
|
"screenOffCommand": "",
|
||||||
|
"lockCommand": "",
|
||||||
|
"suspendCommand": "",
|
||||||
|
"resumeScreenOffCommand": "",
|
||||||
|
"resumeLockCommand": "",
|
||||||
|
"resumeSuspendCommand": "",
|
||||||
|
"customCommands": "[]"
|
||||||
|
},
|
||||||
|
"desktopWidgets": {
|
||||||
|
"enabled": false,
|
||||||
|
"overviewEnabled": true,
|
||||||
|
"gridSnap": false,
|
||||||
|
"gridSnapScale": false,
|
||||||
|
"monitorWidgets": []
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
in {
|
in {
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemdTarget = "graphical-session.target";
|
systemdTargets = ["graphical-session.target"];
|
||||||
timeouts =
|
timeouts =
|
||||||
# Lock screen
|
# Lock screen
|
||||||
[
|
[
|
||||||
-7
@@ -1,14 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (config.colorscheme) colors;
|
|
||||||
in {
|
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
color = "000000";
|
|
||||||
ignore-empty-password = true;
|
ignore-empty-password = true;
|
||||||
indicator-idle-visible = false;
|
indicator-idle-visible = false;
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use
|
||||||
|
|
||||||
|
# TODO: Detect these instead of hardcoding them
|
||||||
|
INTERNAL_MONITOR="eDP-1"
|
||||||
|
EXTERNAL_MONITOR="HDMI-A-1"
|
||||||
|
|
||||||
|
MIRROR_SETTING=$(hyprctl monitors all -j | jq -r '.[] | select(.name == "HDMI-A-1") | .mirrorOf')
|
||||||
|
|
||||||
|
echo "current setting: "
|
||||||
|
echo $MIRROR_SETTING
|
||||||
|
if [ "$MIRROR_SETTING" = "none" ]; then
|
||||||
|
echo "mirroring..."
|
||||||
|
hyprctl eval "hl.monitor({output=\"$EXTERNAL_MONITOR\", mode=\"preferred\", position=\"auto\", scale=\"auto\", mirror=\"$INTERNAL_MONITOR\"})"
|
||||||
|
else
|
||||||
|
# hyprctl keyword monitor "$EXTERNAL_MONITOR, disable" # shortly disable monitor so waybar recognizes the new monitor again # TODO: find better solution
|
||||||
|
hyprctl eval "hl.monitor({output=\"$EXTERNAL_MONITOR\", mode=\"preferred\", position=\"auto\", scale=\"auto\", mirror=\"\"})"
|
||||||
|
fi
|
||||||
+4
-9
@@ -1,13 +1,8 @@
|
|||||||
{
|
{config, ...}: let
|
||||||
options,
|
palette = config.lib.stylix.colors;
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
palette = (inputs.nix-colors.colorschemes.${builtins.toString config.colorscheme.name}).palette;
|
|
||||||
in {
|
in {
|
||||||
|
stylix.targets.waybar.enable = false;
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# systemd.enable = true;
|
# systemd.enable = true;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [wlogout];
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [wofi];
|
||||||
|
|
||||||
|
xdg.configFile."wofi/config".source = ./config;
|
||||||
|
}
|
||||||
@@ -22,9 +22,9 @@
|
|||||||
# Prevent screen from going blank (check these settings with `xset q`)
|
# Prevent screen from going blank (check these settings with `xset q`)
|
||||||
# And disable bell sound (b)
|
# And disable bell sound (b)
|
||||||
xsession.initExtra = ''
|
xsession.initExtra = ''
|
||||||
${pkgs.xorg.xset}/bin/xset s off
|
${pkgs.xset}/bin/xset s off
|
||||||
${pkgs.xorg.xset}/bin/xset -dpms
|
${pkgs.xset}/bin/xset -dpms
|
||||||
${pkgs.xorg.xset}/bin/xset b off
|
${pkgs.xset}/bin/xset b off
|
||||||
'';
|
'';
|
||||||
xsession.windowManager.i3 = {
|
xsession.windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
fd
|
fd
|
||||||
stylua
|
stylua
|
||||||
black
|
black
|
||||||
nixfmt-rfc-style # nixfmt
|
nixfmt # nixfmt
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user