wip: dnsc-machine setup

This commit is contained in:
Dennis Schoepf 2025-11-24 01:20:49 +01:00
parent 199007d0ad
commit a91167b34e
6 changed files with 91 additions and 43 deletions

View file

@ -12,10 +12,6 @@
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
ironbar = {
url = "github:JakeStanger/ironbar";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@ -26,7 +22,6 @@
nix-darwin,
nix-homebrew,
agenix,
ironbar,
...
}@inputs:
let
@ -37,7 +32,6 @@
system = "x86_64-linux";
specialArgs = { inherit inputs outputs; };
modules = [
ironbar.homeManagerModules.default
./hosts/dnsc-machine
];
};

View file

@ -34,6 +34,7 @@
nautilus
nautilus-open-any-terminal
swaynotificationcenter
ironbar
];
imports = [

View file

@ -0,0 +1,20 @@
position = "left"
height = 24
icon_theme = "Reversal-dark"
[[start]]
type = "workspaces"
[[center]]
type = "focused"
icon_size = 16
[[end]]
type = "volume"
[[end]]
type = "tray"
[[end]]
type = "clock"

View file

@ -0,0 +1,67 @@
:root {
--color-dark-primary: #1c1c1c;
--color-dark-secondary: #2d2d2d;
--color-white: #fff;
--color-active: #6699cc;
--color-urgent: #8f0a0a;
--margin-lg: 1em;
--margin-sm: 0.5em;
}
* {
border-radius: 0;
border: none;
box-shadow: none;
font-family: monospace;
}
#bar, popover, popover contents, calendar {
background-color: var(--color-dark-primary);
}
box, button, label {
background-color: #0000;
}
button {
padding-left: var(--margin-sm);
padding-right: var(--margin-sm);
}
button:hover, button:active {
background-color: var(--color-dark-secondary);
}
#end > * + * {
margin-left: var(--margin-lg);
}
.sysinfo > * + * {
margin-left: var(--margin-sm);
}
.clock {
font-weight: bold;
}
.popup-clock .calendar-clock {
font-size: 2.0em;
}
.popup-clock .calendar .today {
background-color: var(--color-active);
}
.workspaces .item.visible {
box-shadow: inset 0 -1px var(--color-white);
}
.workspaces .item.focused {
box-shadow: inset 0 -1px var(--color-active);
background-color: var(--color-dark-secondary);
}
.workspaces .item.urgent {
background-color: var(--color-urgent);
}

View file

@ -1,42 +1,7 @@
{ pkgs, inputs, ... }:
{
programs.ironbar = {
enable = true;
systemd = true;
config = {
# An example:
monitors = {
DP-3 = {
anchor_to_edges = true;
position = "left";
height = 16;
start = [
{ type = "workspaces"; }
];
center = [
{ type = "focused"; }
];
end = [
{ type = "volume"; }
{
type = "tray";
icon_size = 16;
}
{ type = "clock"; }
];
};
};
};
style = /* css */ ''
/* An example */
* {
/* font-family: Noto Sans Nerd Font, sans-serif; */
font-size: 14px;
border: none;
border-radius: 0;
}
'';
package = inputs.ironbar;
xdg.configFile."ironbar" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/ironbar/config";
};
}

View file

@ -186,6 +186,7 @@ layout {
// Wallpaper Setup
spawn-at-startup "swaync"
spawn-at-startup "ironbar"
spawn-at-startup "swww-daemon" // Wallpaper
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"