chore: update flake & niri blur
This commit is contained in:
parent
601dfb9217
commit
98b4f598f8
36 changed files with 516 additions and 317 deletions
|
|
@ -18,68 +18,5 @@ in
|
|||
email = "Danny01161013@gmail.com";
|
||||
})
|
||||
];
|
||||
|
||||
# ==== Niri ==== #
|
||||
programs.niri.settings = {
|
||||
input.keyboard.xkb = {
|
||||
layout = "us";
|
||||
options = "caps:escape";
|
||||
};
|
||||
workspaces."game" = { };
|
||||
window-rules = [
|
||||
# Wine systray
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
title = "^$";
|
||||
app-id = "^steam_app_(.*)$";
|
||||
}
|
||||
];
|
||||
open-fullscreen = false;
|
||||
}
|
||||
# Steam Game Fullscreen
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "^steam_app_(.*)$";
|
||||
is-floating = false;
|
||||
}
|
||||
];
|
||||
open-fullscreen = true;
|
||||
}
|
||||
# Steam & Steam Game
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "^steam_app_*"; }
|
||||
{ app-id = "^pioneergame.exe$"; }
|
||||
{
|
||||
app-id = "^steam$";
|
||||
title = "^Steam$";
|
||||
}
|
||||
];
|
||||
open-on-workspace = "game";
|
||||
}
|
||||
# Steam Dialog float
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "^steam$"; }
|
||||
{ title = "(.*)(EasyAntiCheat_EOS_Setup)(.*)"; }
|
||||
{
|
||||
app-id = "^pioneergame.exe$";
|
||||
title = "^$";
|
||||
}
|
||||
];
|
||||
excludes = [
|
||||
{
|
||||
title = "^Steam$";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
wayland.windowManager.mango.settings = ''
|
||||
xkb_rules_options = caps:escape
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./yubikey.nix
|
||||
./common.nix
|
||||
];
|
||||
}
|
||||
74
system/dev/public/dn/nextcloud-sync.nix
Normal file
74
system/dev/public/dn/nextcloud-sync.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (builtins) length;
|
||||
inherit (lib) getExe' optionalString;
|
||||
inherit (config.systemConf) username;
|
||||
serverCfg = self.nixosConfigurations.dn-server.config;
|
||||
serverNextcloudCfg = serverCfg.services.nextcloud;
|
||||
nextcloudURL =
|
||||
(if serverNextcloudCfg.https then "https" else "http") + "://" + serverNextcloudCfg.hostName;
|
||||
in
|
||||
{
|
||||
|
||||
home-manager.users."${username}" =
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (config.home) homeDirectory;
|
||||
pathToSync = [
|
||||
{
|
||||
target = "/Wallpapers";
|
||||
source = "${homeDirectory}/Pictures/Wallpapers";
|
||||
}
|
||||
];
|
||||
in
|
||||
{
|
||||
sops.secrets."netrc" = {
|
||||
mode = "0700";
|
||||
sopsFile = ../sops/dn-secret.yaml;
|
||||
path = "${homeDirectory}/.netrc";
|
||||
};
|
||||
|
||||
systemd.user = {
|
||||
services.nextcloud-autosync = {
|
||||
Unit = {
|
||||
Description = "Auto sync Nextcloud";
|
||||
After = "network-online.target";
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${getExe' pkgs.nextcloud-client "nextcloudcmd"} -h -n ${
|
||||
optionalString (length pathToSync > 0) "--path"
|
||||
} ${toString (map (x: "${x.target} ${x.source}") pathToSync)} ${nextcloudURL}";
|
||||
TimeoutStopSec = "180";
|
||||
KillMode = "process";
|
||||
KillSignal = "SIGINT";
|
||||
};
|
||||
Install.WantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
timers.nextcloud-autosync =
|
||||
let
|
||||
cfg = config.systemd.user.timers.nextcloud-autosync;
|
||||
in
|
||||
{
|
||||
Unit.Description = "Automatic async files with nextcloud when booted up after ${cfg.Timer.OnBootSec} then rerun every ${cfg.Timer.OnUnitActiveSec} ";
|
||||
Timer.OnBootSec = "5min";
|
||||
Timer.OnUnitActiveSec = "60min";
|
||||
Install.WantedBy = [
|
||||
"multi-user.target"
|
||||
"timers.target"
|
||||
];
|
||||
};
|
||||
startServices = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
system/dev/public/dn/presets/local.nix
Normal file
9
system/dev/public/dn/presets/local.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../nextcloud-sync.nix
|
||||
../yubikey.nix
|
||||
../ntfy.nix
|
||||
../wm.nix
|
||||
];
|
||||
}
|
||||
6
system/dev/public/dn/presets/server.nix
Normal file
6
system/dev/public/dn/presets/server.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../yubikey.nix
|
||||
];
|
||||
}
|
||||
63
system/dev/public/dn/wm.nix
Normal file
63
system/dev/public/dn/wm.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
inherit (config.systemConf) username;
|
||||
in
|
||||
{
|
||||
home-manager.users."${username}" =
|
||||
{ ... }:
|
||||
{
|
||||
# ==== Niri ==== #
|
||||
programs.niri.settings = {
|
||||
input.keyboard.xkb = {
|
||||
layout = "us";
|
||||
options = "caps:escape";
|
||||
};
|
||||
workspaces."game" = { };
|
||||
window-rules = [
|
||||
# Steam Game Fullscreen
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "^steam_app_(.*)$";
|
||||
title = "^.+$";
|
||||
is-floating = false;
|
||||
}
|
||||
];
|
||||
open-fullscreen = true;
|
||||
}
|
||||
# Steam & Steam Game
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "^steam_app_*"; }
|
||||
{ app-id = "^pioneergame.exe$"; }
|
||||
{
|
||||
app-id = "^steam$";
|
||||
title = "^Steam$";
|
||||
}
|
||||
];
|
||||
open-on-workspace = "game";
|
||||
}
|
||||
# Steam Dialog float
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "^steam$"; }
|
||||
{ title = "(.*)(EasyAntiCheat_EOS_Setup)(.*)"; }
|
||||
{
|
||||
app-id = "^pioneergame.exe$";
|
||||
title = "^$";
|
||||
}
|
||||
];
|
||||
excludes = [
|
||||
{
|
||||
title = "^Steam$";
|
||||
}
|
||||
];
|
||||
open-floating = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
wayland.windowManager.mango.settings = ''
|
||||
xkb_rules_options = caps:escape
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue