yep, more dotfiles

add stylix

wiro.world 9fb1786a 1db62a4e

verified
+295 -1
flake.lock
···
"type": "github"
}
},
+
"base16": {
+
"inputs": {
+
"fromYaml": "fromYaml"
+
},
+
"locked": {
+
"lastModified": 1755819240,
+
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
+
"owner": "SenchoPens",
+
"repo": "base16.nix",
+
"rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6",
+
"type": "github"
+
},
+
"original": {
+
"owner": "SenchoPens",
+
"repo": "base16.nix",
+
"type": "github"
+
}
+
},
+
"base16-fish": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1622559957,
+
"narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=",
+
"owner": "tomyun",
+
"repo": "base16-fish",
+
"rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tomyun",
+
"repo": "base16-fish",
+
"type": "github"
+
}
+
},
+
"base16-helix": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1752979451,
+
"narHash": "sha256-0CQM+FkYy0fOO/sMGhOoNL80ftsAzYCg9VhIrodqusM=",
+
"owner": "tinted-theming",
+
"repo": "base16-helix",
+
"rev": "27cf1e66e50abc622fb76a3019012dc07c678fac",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "base16-helix",
+
"type": "github"
+
}
+
},
+
"base16-vim": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1732806396,
+
"narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
+
"owner": "tinted-theming",
+
"repo": "base16-vim",
+
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "base16-vim",
+
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
+
"type": "github"
+
}
+
},
"crane": {
"locked": {
"lastModified": 1731098351,
···
"type": "github"
}
},
+
"firefox-gnome-theme": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1758112371,
+
"narHash": "sha256-lizRM2pj6PHrR25yimjyFn04OS4wcdbc38DCdBVa2rk=",
+
"owner": "rafaelmardojai",
+
"repo": "firefox-gnome-theme",
+
"rev": "0909cfe4a2af8d358ad13b20246a350e14c2473d",
+
"type": "github"
+
},
+
"original": {
+
"owner": "rafaelmardojai",
+
"repo": "firefox-gnome-theme",
+
"type": "github"
+
}
+
},
"flake-compat": {
"flake": false,
"locked": {
···
"type": "github"
}
},
+
"flake-parts_2": {
+
"inputs": {
+
"nixpkgs-lib": [
+
"stylix",
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1756770412,
+
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
+
"owner": "hercules-ci",
+
"repo": "flake-parts",
+
"rev": "4524271976b625a4a605beefd893f270620fd751",
+
"type": "github"
+
},
+
"original": {
+
"owner": "hercules-ci",
+
"repo": "flake-parts",
+
"type": "github"
+
}
+
},
"flake-utils": {
"inputs": {
"systems": "systems_2"
···
},
"flake-utils_2": {
"inputs": {
-
"systems": "systems_3"
+
"systems": "systems_4"
},
"locked": {
"lastModified": 1694529238,
···
"type": "github"
}
},
+
"fromYaml": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1731966426,
+
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
+
"owner": "SenchoPens",
+
"repo": "fromYaml",
+
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
+
"type": "github"
+
},
+
"original": {
+
"owner": "SenchoPens",
+
"repo": "fromYaml",
+
"type": "github"
+
}
+
},
"git-leave": {
"inputs": {
"gitignore": "gitignore",
···
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
+
"type": "github"
+
}
+
},
+
"gnome-shell": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1744584021,
+
"narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
+
"owner": "GNOME",
+
"repo": "gnome-shell",
+
"rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
+
"type": "github"
+
},
+
"original": {
+
"owner": "GNOME",
+
"ref": "48.1",
+
"repo": "gnome-shell",
"type": "github"
}
},
···
"type": "github"
}
},
+
"nur": {
+
"inputs": {
+
"flake-parts": [
+
"stylix",
+
"flake-parts"
+
],
+
"nixpkgs": [
+
"stylix",
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1758998580,
+
"narHash": "sha256-VLx0z396gDCGSiowLMFz5XRO/XuNV+4EnDYjdJhHvUk=",
+
"owner": "nix-community",
+
"repo": "NUR",
+
"rev": "ba8d9c98f5f4630bcb0e815ab456afd90c930728",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nix-community",
+
"repo": "NUR",
+
"type": "github"
+
}
+
},
"pre-commit-hooks-nix": {
"inputs": {
"flake-compat": [
···
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"srvos": "srvos",
+
"stylix": "stylix",
"tangled": "tangled",
"unixpkgs": "unixpkgs",
"wakatime-ls": "wakatime-ls"
···
"type": "github"
}
},
+
"stylix": {
+
"inputs": {
+
"base16": "base16",
+
"base16-fish": "base16-fish",
+
"base16-helix": "base16-helix",
+
"base16-vim": "base16-vim",
+
"firefox-gnome-theme": "firefox-gnome-theme",
+
"flake-parts": "flake-parts_2",
+
"gnome-shell": "gnome-shell",
+
"nixpkgs": [
+
"nixpkgs"
+
],
+
"nur": "nur",
+
"systems": "systems_3",
+
"tinted-foot": "tinted-foot",
+
"tinted-kitty": "tinted-kitty",
+
"tinted-schemes": "tinted-schemes",
+
"tinted-tmux": "tinted-tmux",
+
"tinted-zed": "tinted-zed"
+
},
+
"locked": {
+
"lastModified": 1759596342,
+
"narHash": "sha256-1Eda1V8pjpviMdBTdDXrFp7jkaUokIgXgBYTZyzDODk=",
+
"owner": "nix-community",
+
"repo": "stylix",
+
"rev": "4d065856e936fc6a99ba55d39ac2df9ded6bedbe",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nix-community",
+
"ref": "release-25.05",
+
"repo": "stylix",
+
"type": "github"
+
}
+
},
"systems": {
"locked": {
"lastModified": 1681028828,
···
"type": "github"
}
},
+
"systems_4": {
+
"locked": {
+
"lastModified": 1681028828,
+
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+
"owner": "nix-systems",
+
"repo": "default",
+
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nix-systems",
+
"repo": "default",
+
"type": "github"
+
}
+
},
"tangled": {
"inputs": {
"flake-compat": "flake-compat_2",
···
"original": {
"type": "git",
"url": "https://tangled.org/@tangled.org/core"
+
}
+
},
+
"tinted-foot": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1726913040,
+
"narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
+
"owner": "tinted-theming",
+
"repo": "tinted-foot",
+
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "tinted-foot",
+
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
+
"type": "github"
+
}
+
},
+
"tinted-kitty": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1735730497,
+
"narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
+
"owner": "tinted-theming",
+
"repo": "tinted-kitty",
+
"rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "tinted-kitty",
+
"type": "github"
+
}
+
},
+
"tinted-schemes": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1757716333,
+
"narHash": "sha256-d4km8W7w2zCUEmPAPUoLk1NlYrGODuVa3P7St+UrqkM=",
+
"owner": "tinted-theming",
+
"repo": "schemes",
+
"rev": "317a5e10c35825a6c905d912e480dfe8e71c7559",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "schemes",
+
"type": "github"
+
}
+
},
+
"tinted-tmux": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1757811970,
+
"narHash": "sha256-n5ZJgmzGZXOD9pZdAl1OnBu3PIqD+X3vEBUGbTi4JiI=",
+
"owner": "tinted-theming",
+
"repo": "tinted-tmux",
+
"rev": "d217ba31c846006e9e0ae70775b0ee0f00aa6b1e",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "tinted-tmux",
+
"type": "github"
+
}
+
},
+
"tinted-zed": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1757811247,
+
"narHash": "sha256-4EFOUyLj85NRL3OacHoLGEo0wjiRJzfsXtR4CZWAn6w=",
+
"owner": "tinted-theming",
+
"repo": "base16-zed",
+
"rev": "824fe0aacf82b3c26690d14e8d2cedd56e18404e",
+
"type": "github"
+
},
+
"original": {
+
"owner": "tinted-theming",
+
"repo": "base16-zed",
+
"type": "github"
}
},
"unixpkgs": {
+7 -1
flake.nix
···
home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
+
stylix.url = "github:nix-community/stylix/release-25.05";
+
stylix.inputs.nixpkgs.follows = "nixpkgs";
+
+
## Misc
+
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
···
# srvos.inputs.nixpkgs.follows = "srvos/nixpkgs";
srvos.inputs.nixpkgs.follows = "nixpkgs";
-
# ——— Packages
+
## Packages
+
git-leave.url = "github:mrnossiom/git-leave";
git-leave.inputs.nixpkgs.follows = "nixpkgs";
+2
home-manager/fragments/firefox.nix
···
config = lib.mkIf cfg.enable {
home.sessionVariables.BROWSER = lib.getExe pkgs.firefox;
+
stylix.targets.firefox.profileNames = [ "default" ];
+
programs.firefox = {
enable = true;
-3
home-manager/fragments/foot.nix
···
# server.enable = true;
settings = {
-
main = {
-
font = "monospace:size=10";
-
};
colors = {
background = "000000";
foreground = "ffffff";
+1 -1
home-manager/fragments/helix.nix
···
defaultEditor = true;
settings = {
-
theme = "monokai_pro_octagon";
+
# theme = "monokai_pro_octagon";
editor = {
auto-format = true;
-41
home-manager/fragments/vm-bar.nix
···
integrated-keyboard-id = "1:1:AT_Translated_Set_2_keyboard";
integrated-keyboard-id-bis = "1:1:kanata";
swaymsg = lib.getExe' pkgs.sway "swaymsg";
-
-
theme = config.local.colorScheme.palette;
in
{
config = lib.mkIf cfg.enable {
···
hiddenState = "hide";
mode = "hide";
fonts.size = 11.0;
-
-
colors = {
-
background = "#${theme.base00}";
-
focusedBackground = "#${theme.base00}";
-
separator = "#cccccc";
-
focusedSeparator = "#cccccc";
-
statusline = "#cccccc";
-
focusedStatusline = "#cccccc";
-
-
focusedWorkspace = rec {
-
text = "#${theme.base07}";
-
background = "#${theme.base0C}";
-
border = background;
-
};
-
-
inactiveWorkspace = rec {
-
text = "#${theme.base05}";
-
background = "#${theme.base01}";
-
border = background;
-
};
-
-
activeWorkspace = rec {
-
text = "#${theme.base08}";
-
background = "#${theme.base0C}";
-
border = background;
-
};
-
-
urgentWorkspace = rec {
-
text = "#ffffff";
-
background = "#${theme.base0F}";
-
border = background;
-
};
-
-
bindingMode = rec {
-
text = "#ffffff";
-
background = "#${theme.base0F}";
-
border = background;
-
};
-
};
# Would be nice to have rounded corners and padding when appearing
+25 -36
home-manager/fragments/vm-search.nix
···
let
cfg = config.local.fragment.vm;
-
-
theme = config.local.colorScheme.palette;
-
keyValueFormat = lib.generators.toKeyValue { };
in
{
config = lib.mkIf cfg.enable {
···
in
"${tofi-drun} --font ${jetbrains-nerd-font-regular} | xargs ${swaymsg} exec --";
-
xdg.configFile."tofi/config".text = keyValueFormat {
-
font-size = 14;
+
programs.tofi = {
+
enable = true;
+
settings = {
+
horizontal = true;
+
anchor = "top";
+
width = "100%";
+
height = 48;
-
horizontal = true;
-
anchor = "top";
-
width = "100%";
-
height = 48;
+
outline-width = 0;
+
border-width = 0;
-
outline-width = 0;
-
border-width = 0;
+
min-input-width = 100;
+
result-spacing = 20;
-
min-input-width = 100;
-
result-spacing = 20;
+
padding-top = 12;
+
padding-bottom = 12;
+
padding-left = 20;
+
padding-right = 20;
-
padding-top = 12;
-
padding-bottom = 12;
-
padding-left = 20;
-
padding-right = 20;
-
-
text-color = "#${theme.base06}";
-
background-color = "#${theme.base00}";
+
prompt-text = " ";
+
prompt-padding = 30;
+
prompt-background-padding = "5, 10";
+
prompt-background-corner-radius = 5;
-
prompt-text = " ";
-
prompt-padding = 30;
-
prompt-background = "#${theme.base01}";
-
prompt-background-padding = "5, 10";
-
prompt-background-corner-radius = 5;
-
-
input-color = "#${theme.base07}";
-
input-background = "#${theme.base01}";
-
input-background-padding = "5, 10";
-
input-background-corner-radius = 5;
+
input-background-padding = "5, 10";
+
input-background-corner-radius = 5;
-
selection-color = "#${theme.base0E}";
-
selection-background = "#${theme.base01}";
-
selection-background-padding = "5, 10";
-
selection-background-corner-radius = 8;
-
selection-match-color = "#${theme.base08}";
+
selection-background-padding = "5, 10";
+
selection-background-corner-radius = 8;
-
clip-to-padding = false;
+
clip-to-padding = false;
+
};
};
};
}
+5 -67
home-manager/fragments/vm.nix
···
cfg = config.local.fragment.vm;
-
theme = config.local.colorScheme.palette;
+
theme = config.lib.stylix.colors;
cfg-sway = config.wayland.windowManager.sway.config;
workspacesRange = lib.zipListsWith (key-idx: workspace-idx: { inherit key-idx workspace-idx; }) [ 1 2 3 4 5 6 7 8 9 0 ] (lib.range 1 10);
···
services.mako = {
enable = true;
settings = {
-
font = "sans-serif 10";
-
background-color = "#${theme.base0D}";
-
text-color = "#ffffff";
-
icons = true;
width = 500;
···
border-size = 0;
border-radius = 5;
-
"urgency=low" = {
-
background-color = "#${theme.base0A}";
-
};
"urgency=critical" = {
-
background-color = "#${theme.base0F}";
+
background-color = theme.withHashtag.base0F;
};
"mode=dnd" = {
···
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
-
theme = {
-
name = "Arc-Dark";
-
package = pkgs.arc-theme;
-
};
-
cursorTheme = {
-
name = "Bibata-Modern-Ice";
-
package = pkgs.bibata-cursors;
-
};
-
iconTheme = {
-
name = "Papirus";
-
package = pkgs.papirus-icon-theme;
-
};
+
iconTheme = { name = "Papirus"; package = pkgs.papirus-icon-theme; };
};
services.swayidle =
···
up = "k";
right = "l";
-
fonts = { names = [ "sans-serif" ]; size = 11.0; };
-
window = {
titlebar = false;
commands = [
···
gaps.smartBorders = "no_gaps";
-
colors = {
-
background = "#${theme.base00}";
-
-
focused = {
-
background = "#285577";
-
border = "#4c7899";
-
childBorder = "#285577";
-
indicator = "#2e9ef4";
-
text = "#ffffff";
-
};
-
-
focusedInactive = {
-
background = "#5f676a";
-
border = "#333333";
-
childBorder = "#5f676a";
-
indicator = "#484e50";
-
text = "#ffffff";
-
};
-
-
placeholder = {
-
background = "#0c0c0c";
-
border = "#000000";
-
childBorder = "#0c0c0c";
-
indicator = "#000000";
-
text = "#ffffff";
-
};
-
-
unfocused = {
-
background = "#222222";
-
border = "#333333";
-
childBorder = "#222222";
-
indicator = "#292d2e";
-
text = "#888888";
-
};
-
-
urgent = {
-
background = "#900000";
-
border = "#2f343a";
-
childBorder = "#900000";
-
indicator = "#900000";
-
text = "#ffffff";
-
};
-
};
-
input = {
"type:keyboard" = {
xkb_layout = "us,fr(ergol),fr";
···
lightModeScripts.gtk-theme = ''
# Change system theme scheme to light
${lib.getExe pkgs.dconf} write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
+
+
# TODO: change config specialization
# Prepare laptop for wake: set full brightness and disable kbd backlight
${lib.getExe pkgs.brightnessctl} --class backlight set 100%
+16 -6
home-manager/profiles/desktop.nix
···
{ self
, config
-
, llib
, pkgs
, isDarwin
···
}:
let
-
inherit (self.outputs) homeManagerModules;
-
-
toml-format = pkgs.formats.toml { };
+
inherit (self.inputs) stylix;
in
{
imports = [
-
homeManagerModules.color-scheme
-
{ config.local.colorScheme = llib.colorSchemes.oneDark; }
+
stylix.homeModules.stylix
+
{
+
stylix.enable = true;
+
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
+
stylix.fonts = {
+
sansSerif = { package = pkgs.inter; name = "Inter"; };
+
serif = { package = pkgs.merriweather; name = "Merriweather"; };
+
monospace = { package = pkgs.nerd-fonts.jetbrains-mono; name = "JetBrainsMono Nerd Font"; };
+
};
+
stylix.cursor = {
+
name = "Bibata-Modern-Ice";
+
package = pkgs.bibata-cursors;
+
size = 10;
+
};
+
}
];
config = {
+2 -8
home-manager/profiles/lightweight.nix
···
{ self
, config
-
, llib
, pkgs
, isDarwin
···
}:
let
-
inherit (self.outputs) homeManagerModules;
-
-
toml-format = pkgs.formats.toml { };
+
inherit (self.inputs) stylix;
in
{
-
imports = [
-
homeManagerModules.color-scheme
-
{ config.local.colorScheme = llib.colorSchemes.oneDark; }
-
];
+
imports = [ ];
config = {
assertions = [
-5
home-manager/profiles/macintosh.nix
···
{ self
, config
-
, llib
, pkgs
, isDarwin
···
}:
let
-
inherit (self.outputs) homeManagerModules;
inherit (self.inputs) agenix;
all-secrets = import ../../secrets;
···
# passwordless ssh key as you cannot interact with age in the service.
age.identityPaths = [ "${config.home.homeDirectory}/.ssh/id_home_manager" ];
}
-
-
homeManagerModules.color-scheme
-
{ config.local.colorScheme = llib.colorSchemes.oneDark; }
];
config = {