diff --git a/flake.lock b/flake.lock index 6ecba36..2a96341 100644 --- a/flake.lock +++ b/flake.lock @@ -377,16 +377,15 @@ ] }, "locked": { - "lastModified": 1761843166, - "narHash": "sha256-hS15JVZ1bvHhHxaF1J2q7Oh0LYpg1xdnMm+4jNXC91k=", - "owner": "JakeStanger", + "lastModified": 1762793425, + "narHash": "sha256-ah1F0kv/KRtzFUtQwAS5Oa5RbShtwqvWr+/2KRzyZhI=", + "owner": "lytedev", "repo": "ironbar", - "rev": "9d160d052506a09d7319ffa0a6796dcea8f3b921", + "rev": "750c18c154d4f2ad64501c74b2815308acc84660", "type": "github" }, "original": { - "owner": "JakeStanger", - "ref": "9d160d052506a09d7319ffa0a6796dcea8f3b921", + "owner": "lytedev", "repo": "ironbar", "type": "github" } diff --git a/flake.nix b/flake.nix index dd107c6..e437f2a 100644 --- a/flake.nix +++ b/flake.nix @@ -73,8 +73,7 @@ }; ironbar = { - # https://github.com/JakeStanger/ironbar/pull/1225 - url = "github:JakeStanger/ironbar?ref=9d160d052506a09d7319ffa0a6796dcea8f3b921"; + url = "github:lytedev/ironbar"; inputs.nixpkgs.follows = "nixpkgs-unstable"; }; diff --git a/lib/modules/home/default.nix b/lib/modules/home/default.nix index 20797d9..95e1ca7 100644 --- a/lib/modules/home/default.nix +++ b/lib/modules/home/default.nix @@ -1426,6 +1426,11 @@ in home.file."${config.xdg.configHome}/niri" = { source = conditionalOutOfStoreSymlink config /etc/nix/flake/lib/modules/home/niri ../home/niri; }; + home.file."${config.xdg.configHome}/ironbar" = { + source = + conditionalOutOfStoreSymlink config /etc/nix/flake/lib/modules/home/ironbar + ../home/ironbar; + }; } ) ( @@ -1439,46 +1444,13 @@ in config = lib.mkIf (config.lyte.desktop.enable && config.lyte.desktop.niri.enable) { home.packages = with pkgs; [ swayosd + swaylock fuzzel brightnessctl ]; programs.ironbar = { enable = true; systemd = true; - config = { - # An example: - monitors = { - DP-1 = { - anchor_to_edges = true; - position = "top"; - height = 16; - start = [ - { type = "clock"; } - ]; - end = [ - { - type = "tray"; - icon_size = 16; - } - ]; - }; - }; - }; - style = # css - '' - /* An example */ - * { - font-family: Noto Sans Nerd Font, sans-serif; - font-size: 16px; - border: none; - border-radius: 0; - } - ''; - # package = inputs.ironbar; - # features = [ - # "feature" - # "another_feature" - # ]; }; }; } diff --git a/lib/modules/home/ironbar/config.toml b/lib/modules/home/ironbar/config.toml new file mode 100644 index 0000000..a7be009 --- /dev/null +++ b/lib/modules/home/ironbar/config.toml @@ -0,0 +1,8 @@ +[monitors] + +[monitors.eDP-1] +position = "bottom" +height = 30 +start = [] + +[monitors.DP-2] diff --git a/lib/modules/home/niri/config.kdl b/lib/modules/home/niri/config.kdl index 54ec1c5..88455ae 100644 --- a/lib/modules/home/niri/config.kdl +++ b/lib/modules/home/niri/config.kdl @@ -114,6 +114,18 @@ output "BOE NV122WUM-N42 Unknown" { scale 1.25 } +// foxtrot / Framework 13 +output "BOE NE135A1M-NY1 Unknown" { + scale 1.75 + position x=0 y=0 +} + +// portable sotsu monitor +output "PNP(JMI) FlipAction16 P05162024" { + scale 1.25 + position x=-200 y=-1280 +} + // Settings that influence how windows are positioned and sized. // Find more information on the wiki: // https://yalter.github.io/niri/Configuration:-Layout @@ -374,6 +386,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; } + Mod+Return hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; } Mod+Space hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Super+Shift+Control+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } diff --git a/packages/hosts/foxtrot.nix b/packages/hosts/foxtrot.nix index 8786526..ceb845b 100644 --- a/packages/hosts/foxtrot.nix +++ b/packages/hosts/foxtrot.nix @@ -35,10 +35,19 @@ framework-13-7040-amd ]; + networking.wireless.iwd = { + enable = true; + settings = { + Network.EnableIPv6 = true; + Settings.AutoConnect = true; + General.AddressRandomization = "network"; + }; + }; networking.networkmanager = { wifi = { - macAddress = "random"; + # macAddress = "random"; powersave = false; + backend = "iwd"; }; }; hardware = { @@ -84,6 +93,8 @@ lyte.desktop = { enable = true; # environment = "plasma"; + gnome.enable = true; + niri.enable = true; }; lyte.laptop.enable = true; family-account.enable = true; @@ -96,6 +107,8 @@ }; lyte.desktop = { enable = true; + gnome.enable = true; + niri.enable = true; }; home = { file.".config/easyeffects/output" = { @@ -113,15 +126,4 @@ }; services.postgresql.enable = true; environment.systemPackages = with pkgs; [ vibe ]; - - specialisation = { - niri.configuration = { - lyte.desktop.gnome.enable = lib.mkForce false; - lyte.desktop.niri.enable = true; - home-manager.users.daniel = { - lyte.desktop.gnome.enable = lib.mkForce false; - lyte.desktop.niri.enable = true; - }; - }; - }; }