1
1
Fork 0

Compare commits

...

4 commits

Author SHA1 Message Date
7f34e497a2
remote.sh: fix semantics
Signed-off-by: Myned <dev@bjork.tech>
2024-11-17 14:15:19 -06:00
af4ace6146
remmina: initial program
Signed-off-by: Myned <dev@bjork.tech>
2024-11-17 14:14:57 -06:00
7e47ef95ef
custom: add sync directory option
Signed-off-by: Myned <dev@bjork.tech>
2024-11-17 14:14:42 -06:00
927a0a054d
hyprland: explicitly float overrides
Signed-off-by: Myned <dev@bjork.tech>
2024-11-17 14:14:23 -06:00
8 changed files with 29 additions and 11 deletions

View file

@ -18,6 +18,7 @@ in {
hostname = mkOption {}; hostname = mkOption {};
realname = mkOption {default = "Myned";}; realname = mkOption {default = "Myned";};
username = mkOption {default = "myned";}; username = mkOption {default = "myned";};
sync = mkOption {default = "/home/myned/SYNC";};
### Hardware ### Hardware
width = mkOption {default = 1920;}; width = mkOption {default = 1920;};

View file

@ -245,6 +245,7 @@ in {
]; ];
vm = rules: [ vm = rules: [
(class "(sdl-|wl|x)freerdp" (rules ++ ["nomaxsize" "tile"])) (class "(sdl-|wl|x)freerdp" (rules ++ ["nomaxsize" "tile"]))
(class "org\\.remmina\\.Remmina" (rules ++ ["tile"]))
(class "virt-manager" rules) (class "virt-manager" rules)
]; ];
wine = rules: [ wine = rules: [
@ -289,7 +290,7 @@ in {
(fields { (fields {
class = "^com\\.github\\.wwmm\\.easyeffects$"; class = "^com\\.github\\.wwmm\\.easyeffects$";
title = "^Easy Effects$"; # Main window title = "^Easy Effects$"; # Main window
} ["center" "size 50% 50%"]) } ["center" "float" "size 50% 50%"])
(fields { (fields {
class = "^discord$"; class = "^discord$";
title = "^Discord Updater$"; # Update dialog title = "^Discord Updater$"; # Update dialog
@ -297,19 +298,19 @@ in {
(fields { (fields {
class = "^lutris$"; class = "^lutris$";
title = "^Lutris$"; # Main window title = "^Lutris$"; # Main window
} ["center" "size 1000 500"]) } ["center" "float" "size 1000 500"])
(fields { (fields {
class = "^org\\.gnome\\.Loupe$"; class = "^org\\.gnome\\.Loupe$";
title = "^wallpaper.png$"; title = "^wallpaper.png$";
} ["tile" "workspace special:wallpaper"]) } ["tile" "workspace special:wallpaper"])
(fields { (fields {
class = "^org\\.remmina\\.Remmina$"; class = "^org\\.remmina\\.Remmina$";
title = "^Remmina Remote Desktop Client$"; # Main window title = "^Remmina.*$"; # Main windows
} ["center" "size 1000 500"]) } ["center" "float" "size 1000 500"])
(fields { (fields {
class = "^steam$"; class = "^steam$";
title = "^notificationtoasts$"; # Steam notifications title = "^notificationtoasts$"; # Steam notifications
} ["nofocus" "pin"]) } ["float" "nofocus" "pin"])
(fields { (fields {
class = "^steam$"; class = "^steam$";
title = "^Steam$"; # Main window title = "^Steam$"; # Main window

View file

@ -64,6 +64,7 @@ with lib; {
#// onedrive.enable = true; #// onedrive.enable = true;
path-of-building.enable = true; path-of-building.enable = true;
rbw.enable = true; rbw.enable = true;
remmina.enable = true;
rofi-rbw.enable = true; rofi-rbw.enable = true;
rofi.enable = true; rofi.enable = true;
seahorse.enable = true; seahorse.enable = true;

View file

@ -546,9 +546,7 @@ in {
# Imperative symlinks intended to be synced # Imperative symlinks intended to be synced
"Downloads/stg" = mkIf config.custom.full { "Downloads/stg" = mkIf config.custom.full {
source = source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/common/config/extensions/Simple Tab Groups";
config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink
"/home/myned/SYNC/common/config/extensions/Simple Tab Groups";
}; };
# Work around icon dissociation due to missing --name flag in actions # Work around icon dissociation due to missing --name flag in actions

View file

@ -0,0 +1,17 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.custom.programs.remmina;
in {
options.custom.programs.remmina.enable = mkOption {default = false;};
config = mkIf cfg.enable {
home-manager.users.${config.custom.username} = {
#!! Imperative configuration
home.file.".config/remmina/remmina.pref".source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/linux/config/remmina/remmina.pref";
};
};
}

View file

@ -5,7 +5,7 @@
# https://github.com/sigoden/argc # https://github.com/sigoden/argc
# @meta combine-shorts # @meta combine-shorts
# @option -C --client=remmina Remote desktop client to connect with (remmina or <x|w|sdl>-freerdp) # @option -C --client=remmina Remote desktop client to connect with (remmina or <sdl-|x|w>freerdp)
# @option -P --password Password to connect with # @option -P --password Password to connect with
# @option -S --scale=100 Set FreeRDP resolution scale # @option -S --scale=100 Set FreeRDP resolution scale
# @option -U --username! Username to connect with # @option -U --username! Username to connect with

View file

@ -21,7 +21,7 @@ in {
wantedBy = ["default.target"]; wantedBy = ["default.target"];
serviceConfig = { serviceConfig = {
WorkingDirectory = ["/home/myned/.git/modufur"]; WorkingDirectory = ["/home/${config.custom.username}/.git/modufur"];
ExecStart = ["${poetry}/bin/poetry run python -OO run.py >&2"]; ExecStart = ["${poetry}/bin/poetry run python -OO run.py >&2"];
}; };
}; };

View file

@ -143,7 +143,7 @@ in {
#!! Must be downloaded manually due to licensing #!! Must be downloaded manually due to licensing
# (ciscoPacketTracer8.overrideAttrs { # (ciscoPacketTracer8.overrideAttrs {
# src = /home/myned/SYNC/linux/config/cisco/CiscoPacketTracer822_amd64_signed.deb; # src = ${config.custom.sync}/linux/config/cisco/CiscoPacketTracer822_amd64_signed.deb;
# }) # })
### CLI applications ### CLI applications