mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-01-16 00:53:05 +01:00
remove dependency on niri overlay from sodi and switch to just kdl
This commit is contained in:
parent
0cb98d2868
commit
3cacac4e6a
21 changed files with 352 additions and 653 deletions
|
|
@ -1,38 +1,43 @@
|
|||
{ pkgs, ... }:
|
||||
# this file must only be saved via autosave due to the formatter.
|
||||
# else it will be ugly
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./binds.nix
|
||||
./input.nix
|
||||
./privacy.nix
|
||||
./quirks.nix
|
||||
./screenshot.nix
|
||||
./style.nix
|
||||
./workspaces.nix
|
||||
./xwayland-sat.nix
|
||||
];
|
||||
programs.niri.settings = {
|
||||
outputs."eDP-1" = {
|
||||
scale = 1.0;
|
||||
home.file."config" =
|
||||
let
|
||||
kdlfiles =
|
||||
builtins.readDir ./kdl
|
||||
|> lib.filterAttrs (key: value: value == "regular")
|
||||
|> lib.mapAttrsToList (filename: _value: "include \"${./kdl}/${filename}\"");
|
||||
startups =
|
||||
[
|
||||
[
|
||||
"eww"
|
||||
"open-many"
|
||||
"topBar"
|
||||
"bottomBar"
|
||||
]
|
||||
[
|
||||
"${pkgs.swaybg}/bin/swaybg"
|
||||
"-i"
|
||||
"${./wallpaper.jpg}"
|
||||
"-m"
|
||||
"fill"
|
||||
]
|
||||
[
|
||||
"touch"
|
||||
".config/niri/live.kdl"
|
||||
]
|
||||
]
|
||||
|> map (map (word: "\"${word}\""))
|
||||
|> map (lib.concatStringsSep " ")
|
||||
|> map (it: "spawn-at-startup ${it}");
|
||||
other = [
|
||||
"include \"live.kdl\""
|
||||
"output \"eDP-1\" { scale 1.1; }"
|
||||
];
|
||||
in
|
||||
{
|
||||
target = ".config/niri/config.kdl";
|
||||
text = lib.concatLines (startups ++ kdlfiles ++ other);
|
||||
};
|
||||
|
||||
spawn-at-startup = [
|
||||
{
|
||||
command = [
|
||||
"eww"
|
||||
"open-many"
|
||||
"topBar"
|
||||
"bottomBar"
|
||||
];
|
||||
}
|
||||
{
|
||||
command = [
|
||||
"${pkgs.swaybg}/bin/swaybg"
|
||||
"-i"
|
||||
"${./wallpaper.jpg}"
|
||||
"-m"
|
||||
"fill"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue