Compare commits

..

11 commits

4 changed files with 86 additions and 166 deletions

View file

@ -4,9 +4,7 @@
"inputs": {
"darwin": "darwin",
"home-manager": "home-manager",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs": ["nixpkgs"],
"systems": "systems"
},
"locked": {
@ -44,10 +42,7 @@
},
"astal": {
"inputs": {
"nixpkgs": [
"ags",
"nixpkgs"
]
"nixpkgs": ["ags", "nixpkgs"]
},
"locked": {
"lastModified": 1731533099,
@ -100,10 +95,7 @@
},
"crane_2": {
"inputs": {
"nixpkgs": [
"lanzaboote",
"nixpkgs"
]
"nixpkgs": ["lanzaboote", "nixpkgs"]
},
"locked": {
"lastModified": 1717535930,
@ -121,10 +113,7 @@
},
"darwin": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
"nixpkgs": ["agenix", "nixpkgs"]
},
"locked": {
"lastModified": 1700795494,
@ -164,9 +153,7 @@
"firefox-addons": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": ["nixpkgs"]
},
"locked": {
"dir": "pkgs/firefox-addons",
@ -252,10 +239,7 @@
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"lanzaboote",
"nixpkgs"
]
"nixpkgs-lib": ["lanzaboote", "nixpkgs"]
},
"locked": {
"lastModified": 1717285511,
@ -377,11 +361,7 @@
},
"gitignore": {
"inputs": {
"nixpkgs": [
"lanzaboote",
"pre-commit-hooks-nix",
"nixpkgs"
]
"nixpkgs": ["lanzaboote", "pre-commit-hooks-nix", "nixpkgs"]
},
"locked": {
"lastModified": 1709087332,
@ -416,10 +396,7 @@
},
"home-manager": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
"nixpkgs": ["agenix", "nixpkgs"]
},
"locked": {
"lastModified": 1703113217,
@ -437,9 +414,7 @@
},
"home-manager_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": ["nixpkgs"]
},
"locked": {
"lastModified": 1731786860,
@ -459,7 +434,7 @@
"inputs": {
"crane": "crane",
"naersk": "naersk",
"nixpkgs": "nixpkgs_5",
"nixpkgs": ["nixpkgs"],
"rust-overlay": "rust-overlay"
},
"locked": {
@ -482,9 +457,7 @@
"flake-compat": "flake-compat_3",
"flake-parts": "flake-parts_2",
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs": ["nixpkgs"],
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
"rust-overlay": "rust-overlay_2"
},
@ -555,11 +528,7 @@
},
"naersk_2": {
"inputs": {
"nixpkgs": [
"nvf",
"rnix-lsp",
"nixpkgs"
]
"nixpkgs": ["nvf", "rnix-lsp", "nixpkgs"]
},
"locked": {
"lastModified": 1655042882,
@ -577,14 +546,8 @@
},
"nil": {
"inputs": {
"flake-utils": [
"nvf",
"flake-utils"
],
"nixpkgs": [
"nvf",
"nixpkgs"
],
"flake-utils": ["nvf", "flake-utils"],
"nixpkgs": ["nvf", "nixpkgs"],
"rust-overlay": "rust-overlay_3"
},
"locked": {
@ -605,7 +568,7 @@
"inputs": {
"niri-stable": "niri-stable",
"niri-unstable": "niri-unstable",
"nixpkgs": "nixpkgs_6",
"nixpkgs": "nixpkgs_5",
"nixpkgs-stable": "nixpkgs-stable_2",
"xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
@ -659,9 +622,7 @@
},
"nix-index-db": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": ["nixpkgs"]
},
"locked": {
"lastModified": 1731593150,
@ -679,11 +640,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1731740897,
"narHash": "sha256-teFd31vsE/0Z0WR6XVeKhKPw6Eyb2gXGpG0tjpMfBDM=",
"lastModified": 1731797098,
"narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "c2c275fbb2e656948ba6e1f67b8ddd430f158c5f",
"rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6",
"type": "github"
},
"original": {
@ -765,22 +726,6 @@
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1731531548,
"narHash": "sha256-sz8/v17enkYmfpgeeuyzniGJU0QQBfmAjlemAUYhfy8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "24f0d4acd634792badd6470134c387a3b039dace",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_11": {
"locked": {
"lastModified": 1726871744,
"narHash": "sha256-V5LpfdHyQkUF7RfOaDPrZDP+oqz88lTJrMT1+stXNwo=",
@ -846,7 +791,7 @@
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
"owner": "nixos",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
"type": "github"
@ -869,16 +814,16 @@
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
"type": "github"
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
"owner": "NixOS",
"lastModified": 1726871744,
"narHash": "sha256-V5LpfdHyQkUF7RfOaDPrZDP+oqz88lTJrMT1+stXNwo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
"type": "github"
@ -891,22 +836,6 @@
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1731676054,
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1656753965,
"narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
@ -922,6 +851,22 @@
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1731531548,
"narHash": "sha256-sz8/v17enkYmfpgeeuyzniGJU0QQBfmAjlemAUYhfy8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "24f0d4acd634792badd6470134c387a3b039dace",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nmd": {
"flake": false,
"locked": {
@ -944,7 +889,7 @@
"flake-utils": "flake-utils_3",
"mnw": "mnw",
"nil": "nil",
"nixpkgs": "nixpkgs_8",
"nixpkgs": "nixpkgs_7",
"nmd": "nmd",
"plugin-alpha-nvim": "plugin-alpha-nvim",
"plugin-bufdelete-nvim": "plugin-bufdelete-nvim",
@ -1067,12 +1012,8 @@
},
"plasma-manager": {
"inputs": {
"home-manager": [
"home-manager"
],
"nixpkgs": [
"nixpkgs"
]
"home-manager": ["home-manager"],
"nixpkgs": ["nixpkgs"]
},
"locked": {
"lastModified": 1731193165,
@ -2723,7 +2664,7 @@
},
"portfolio": {
"inputs": {
"nixpkgs": "nixpkgs_10",
"nixpkgs": "nixpkgs_9",
"sam-zola": "sam-zola"
},
"locked": {
@ -2742,15 +2683,9 @@
},
"pre-commit-hooks-nix": {
"inputs": {
"flake-compat": [
"lanzaboote",
"flake-compat"
],
"flake-compat": ["lanzaboote", "flake-compat"],
"gitignore": "gitignore",
"nixpkgs": [
"lanzaboote",
"nixpkgs"
],
"nixpkgs": ["lanzaboote", "nixpkgs"],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
@ -2770,7 +2705,7 @@
"rnix-lsp": {
"inputs": {
"naersk": "naersk_2",
"nixpkgs": "nixpkgs_9",
"nixpkgs": "nixpkgs_8",
"utils": "utils_2"
},
"locked": {
@ -2800,7 +2735,7 @@
"niri": "niri",
"nix-index-db": "nix-index-db",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_7",
"nixpkgs": "nixpkgs_6",
"nvf": "nvf",
"plasma-manager": "plasma-manager",
"portfolio": "portfolio",
@ -2811,10 +2746,7 @@
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"ironbar",
"nixpkgs"
]
"nixpkgs": ["ironbar", "nixpkgs"]
},
"locked": {
"lastModified": 1730341826,
@ -2832,14 +2764,8 @@
},
"rust-overlay_2": {
"inputs": {
"flake-utils": [
"lanzaboote",
"flake-utils"
],
"nixpkgs": [
"lanzaboote",
"nixpkgs"
]
"flake-utils": ["lanzaboote", "flake-utils"],
"nixpkgs": ["lanzaboote", "nixpkgs"]
},
"locked": {
"lastModified": 1717813066,
@ -2857,16 +2783,8 @@
},
"rust-overlay_3": {
"inputs": {
"flake-utils": [
"nvf",
"nil",
"flake-utils"
],
"nixpkgs": [
"nvf",
"nil",
"nixpkgs"
]
"flake-utils": ["nvf", "nil", "flake-utils"],
"nixpkgs": ["nvf", "nil", "nixpkgs"]
},
"locked": {
"lastModified": 1714529851,
@ -2884,10 +2802,7 @@
},
"rust-overlay_4": {
"inputs": {
"nixpkgs": [
"wezterm",
"nixpkgs"
]
"nixpkgs": ["wezterm", "nixpkgs"]
},
"locked": {
"lastModified": 1729477859,
@ -3026,7 +2941,7 @@
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_11"
"nixpkgs": "nixpkgs_10"
},
"locked": {
"lastModified": 1730321837,
@ -3081,9 +2996,7 @@
"freetype2": "freetype2",
"harfbuzz": "harfbuzz",
"libpng": "libpng",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs": ["nixpkgs"],
"rust-overlay": "rust-overlay_4",
"zlib": "zlib"
},

View file

@ -13,6 +13,7 @@
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
in {
imports = [./modules];
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = [
@ -34,7 +35,7 @@
};
inputs = {
# nix related
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/dc460ec76cbff0e66e269457d7b728432263166c"; # TODO: remove when 24.11 is out
systems.url = "github:nix-systems/default-linux";
nixos-hardware.url = "github:NixOS/nixos-hardware";
lanzaboote = {
@ -58,7 +59,10 @@
ags.url = "github:Aylur/ags";
basix.url = "github:notashelf/basix";
deploy-rs.url = "github:serokell/deploy-rs";
ironbar.url = "github:JakeStanger/ironbar";
ironbar = {
url = "github:JakeStanger/ironbar";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -6,7 +6,7 @@
osConfig,
...
}: let
colors = inputs.basix.schemeData.base16.${osConfig.theme.scheme}.palette;
inherit (inputs.basix.schemeData.base16.${osConfig.theme.scheme}) palette;
inherit (lib) getExe mkIf;
in {
imports = [./binds.nix];
@ -37,7 +37,7 @@ in {
layout = {
focus-ring = {
enable = true;
active.color = "#${colors.base0E}";
active.color = palette.base0E;
};
always-center-single-column = true;
};

View file

@ -14,28 +14,31 @@
shell = "${lib.getExe config.programs.fish.package}";
};
colors = let
schemeData = inputs.basix.schemeData.base16.${osConfig.theme.scheme};
inherit (lib) mapAttrs;
inherit (lib.strings) removePrefix;
# because someone thought this was a great idea: https://github.com/tinted-theming/schemes/commit/61058a8d2e2bd4482b53d57a68feb56cdb991f0b
palette = mapAttrs (_: color: removePrefix "#" color) inputs.basix.schemeData.base16.${osConfig.theme.scheme}.palette;
in {
background = schemeData.palette.base00;
foreground = schemeData.palette.base05;
background = palette.base00;
foreground = palette.base05;
regular0 = schemeData.palette.base01;
regular1 = schemeData.palette.base08;
regular2 = schemeData.palette.base0B;
regular3 = schemeData.palette.base0A;
regular4 = schemeData.palette.base0D;
regular5 = schemeData.palette.base0E;
regular6 = schemeData.palette.base0C;
regular7 = schemeData.palette.base06;
regular0 = palette.base01;
regular1 = palette.base08;
regular2 = palette.base0B;
regular3 = palette.base0A;
regular4 = palette.base0D;
regular5 = palette.base0E;
regular6 = palette.base0C;
regular7 = palette.base06;
bright0 = schemeData.palette.base02;
bright1 = schemeData.palette.base08;
bright2 = schemeData.palette.base0B;
bright3 = schemeData.palette.base0A;
bright4 = schemeData.palette.base0D;
bright5 = schemeData.palette.base0E;
bright6 = schemeData.palette.base0C;
bright7 = schemeData.palette.base07;
bright0 = palette.base02;
bright1 = palette.base08;
bright2 = palette.base0B;
bright3 = palette.base0A;
bright4 = palette.base0D;
bright5 = palette.base0E;
bright6 = palette.base0C;
bright7 = palette.base07;
};
};
};