modularize config
This commit is contained in:
parent
09c4625fbb
commit
7a4e46e04f
33 changed files with 230 additions and 168 deletions
|
|
@ -1,14 +1,11 @@
|
|||
{ pkgs
|
||||
, inputs
|
||||
, username
|
||||
, config
|
||||
{ config
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
wayland.windowManager.hyprland.enable = true;
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mod" = "SUPER";
|
||||
"source" = "/home/${username}/.config/reset/keyboard.conf";
|
||||
"source" = "/home/${config.conf.username}/.config/reset/keyboard.conf";
|
||||
|
||||
bindm = [
|
||||
"$mod, mouse:272, movewindow"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
input-field = [
|
||||
{
|
||||
monitor = "${config.programs.ironbar.monitor}";
|
||||
monitor = "${config.conf.monitor}";
|
||||
|
||||
placeholder_text = "password or something";
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
label = [
|
||||
{
|
||||
monitor = "${config.programs.ironbar.monitor}";
|
||||
monitor = "${config.conf.monitor}";
|
||||
text = "$TIME";
|
||||
font_size = 50;
|
||||
position = "0, 200";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{ config, username, ... }: {
|
||||
{ config, ... }:
|
||||
let
|
||||
username = config.conf.username;
|
||||
in
|
||||
{
|
||||
|
||||
programs.ironbar =
|
||||
{
|
||||
|
|
@ -141,8 +145,8 @@
|
|||
#"another_feature"
|
||||
];
|
||||
config = {
|
||||
monitors."${config.programs.ironbar.monitor}" = {
|
||||
end = config.programs.ironbar.battery ++ [
|
||||
monitors."${config.conf.monitor}" = {
|
||||
end = config.conf.battery ++ [
|
||||
{
|
||||
type = "sys_info";
|
||||
format = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue