mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
66
modules/home/gui/desktop/niri/default.nix
Executable file
66
modules/home/gui/desktop/niri/default.nix
Executable file
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
inherit (flake.config.aesthetics.themes) currentTheme palettes;
|
||||
|
||||
inherit (flake.config.people) user0;
|
||||
|
||||
user = config.home.username;
|
||||
|
||||
colourHelpers = {
|
||||
themeLogic = if user == user0 then currentTheme else currentTheme;
|
||||
|
||||
el = palettes.${colourHelpers.themeLogic}.colours;
|
||||
|
||||
makeColour = c: "#" + c;
|
||||
};
|
||||
|
||||
workspaceStrings = {
|
||||
workspace0 = "messaging";
|
||||
workspace1 = "work";
|
||||
workspace2 = "gaming";
|
||||
workspace3 = "media";
|
||||
workspace4 = "extra";
|
||||
};
|
||||
|
||||
configPath = ./config;
|
||||
|
||||
configImports =
|
||||
let
|
||||
binds = import (configPath + /binds.nix) {
|
||||
inherit
|
||||
config
|
||||
workspaceStrings
|
||||
flake
|
||||
osConfig
|
||||
;
|
||||
};
|
||||
layout = import (configPath + /layout.nix) { inherit colourHelpers flake; };
|
||||
main = import (configPath + /main.nix);
|
||||
outputs = import (configPath + /outputs.nix) {
|
||||
inherit
|
||||
flake
|
||||
osConfig
|
||||
colourHelpers
|
||||
;
|
||||
};
|
||||
startup = import (configPath + /startup.nix) { inherit lib pkgs; };
|
||||
style = import (configPath + /style.nix) { inherit flake; };
|
||||
windowrules = import (configPath + /windowrules.nix) { inherit flake workspaceStrings; };
|
||||
workspaces = import (configPath + /workspaces.nix) { inherit workspaceStrings; };
|
||||
in
|
||||
binds // layout // main // outputs // startup // style // windowrules // workspaces;
|
||||
|
||||
in
|
||||
{
|
||||
programs.niri = {
|
||||
settings = configImports;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue