flocon/flake.nix

87 lines
2.7 KiB
Nix
Raw Normal View History

2024-08-25 19:58:12 +00:00
{
description = "nezia's nixos configuration";
outputs = {
self,
nixpkgs,
agenix,
2024-10-24 12:19:40 +00:00
deploy-rs,
treefmt-nix,
...
} @ inputs: let
eachSystem = f: nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
treefmtEval = eachSystem (pkgs: treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
in {
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = [
pkgs.alejandra
pkgs.git
2024-10-24 12:19:40 +00:00
deploy-rs.packages.${pkgs.system}.default
agenix.packages.${pkgs.system}.default
];
2024-08-25 19:58:12 +00:00
};
});
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
nixosConfigurations = import ./hosts {inherit inputs;};
2024-12-18 10:00:24 +00:00
packages = eachSystem (pkgs: import ./shared/pkgs {inherit inputs pkgs;});
deploy.nodes = import ./nodes.nix {inherit inputs;};
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
};
inputs = {
2024-10-22 14:40:57 +00:00
# nix related
2024-11-22 18:36:40 +00:00
nixpkgs.url = "nixpkgs/nixos-unstable";
2024-10-22 14:40:57 +00:00
nixos-hardware.url = "github:NixOS/nixos-hardware";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-22 14:40:57 +00:00
nix-index-db = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-22 14:40:57 +00:00
# other
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
basix.url = "github:notashelf/basix";
deploy-rs.url = "github:serokell/deploy-rs";
2024-10-22 14:40:57 +00:00
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
treewide: switch to hyprland I've decided to switch to Hyprland again, after having issues with Niri, especially with XWayland apps. It also has better and more widespread integration with other pieces of software that I use/plan to use. commit 5a42498391ede5bdd9512e7112df69684365a6af Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:59:37 2024 +0100 modules/theme: update fuzzel selection colors commit f3386f5b0afdf33516167ec29dbccde231aada0d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:53:57 2024 +0100 system/services/greetd: enable gnome keyring commit c1caf6d844d37f64639b81e081d2c60d53928021 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:51:24 2024 +0100 modules/themes: switch to phinger-cursors, update border colors commit aa7a00d330cbf776c86d18cce041eb4c342ffa50 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:43 2024 +0100 hosts/solaire: switch to hyprland commit 7c7a332a3ead08018e777bd8da25687ae7b3f5cb Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:34 2024 +0100 modules/theme: set default theme to catppuccin (again) commit 471c6b5503a327682edbdb5e0af09212961339df Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:24 2024 +0100 flake: add hyprwm-contrib for grimslurp commit 04914eab738536f0c4635cdb710fc942b21de9d1 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:09 2024 +0100 system/services/greetd: switch to hyprland as compositor (thanks jacekpoz) commit d185864012c5f4664bc0cbefb423ffe1f0735dd8 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:56 2024 +0100 home/services/swaync: remove unused variables commit 75ff00b2e282b34ac8e2d470fc32bf6038fb1f2a Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:43 2024 +0100 home/programs/waybar: add hyprland workspaces commit b36b3abf53797ceeaa348c3ad1cac864fafa105c Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:31 2024 +0100 home/programs/hypr: add basic hyprland configuration commit cdda6bf2bc69b94adb61bcb1b8181c9d6720211d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:53 2024 +0100 system/programs: add hyprland module commit ef36f7be362b51f8a7f16d641f16cb3c56cd5533 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:43 2024 +0100 flake: add hyprland and cachix commit cdbcd8d1bd173f3f3f2662b9661487bdd5b6590d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:37 2024 +0100 system/nix: add wheel to trusted users
2024-12-13 18:02:53 +00:00
hyprland.url = "github:hyprwm/Hyprland";
hyprwm-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-24 12:49:32 +00:00
niri.url = "github:sodiboo/niri-flake";
2024-12-05 14:58:37 +00:00
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.5.0";
nvf.url = "github:notashelf/nvf";
2024-10-27 10:56:13 +00:00
portfolio.url = "github:nezia1/portfolio";
2024-10-22 14:40:57 +00:00
plasma-manager = {
url = "github:nix-community/plasma-manager";
2024-10-19 22:05:19 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2024-10-22 14:40:57 +00:00
inputs.home-manager.follows = "home-manager";
2024-10-19 22:05:19 +00:00
};
2024-10-22 14:40:57 +00:00
treefmt-nix.url = "github:numtide/treefmt-nix";
2024-11-29 14:03:18 +00:00
};
treewide: switch to hyprland I've decided to switch to Hyprland again, after having issues with Niri, especially with XWayland apps. It also has better and more widespread integration with other pieces of software that I use/plan to use. commit 5a42498391ede5bdd9512e7112df69684365a6af Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:59:37 2024 +0100 modules/theme: update fuzzel selection colors commit f3386f5b0afdf33516167ec29dbccde231aada0d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:53:57 2024 +0100 system/services/greetd: enable gnome keyring commit c1caf6d844d37f64639b81e081d2c60d53928021 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:51:24 2024 +0100 modules/themes: switch to phinger-cursors, update border colors commit aa7a00d330cbf776c86d18cce041eb4c342ffa50 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:43 2024 +0100 hosts/solaire: switch to hyprland commit 7c7a332a3ead08018e777bd8da25687ae7b3f5cb Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:34 2024 +0100 modules/theme: set default theme to catppuccin (again) commit 471c6b5503a327682edbdb5e0af09212961339df Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:24 2024 +0100 flake: add hyprwm-contrib for grimslurp commit 04914eab738536f0c4635cdb710fc942b21de9d1 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:09 2024 +0100 system/services/greetd: switch to hyprland as compositor (thanks jacekpoz) commit d185864012c5f4664bc0cbefb423ffe1f0735dd8 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:56 2024 +0100 home/services/swaync: remove unused variables commit 75ff00b2e282b34ac8e2d470fc32bf6038fb1f2a Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:43 2024 +0100 home/programs/waybar: add hyprland workspaces commit b36b3abf53797ceeaa348c3ad1cac864fafa105c Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:31 2024 +0100 home/programs/hypr: add basic hyprland configuration commit cdda6bf2bc69b94adb61bcb1b8181c9d6720211d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:53 2024 +0100 system/programs: add hyprland module commit ef36f7be362b51f8a7f16d641f16cb3c56cd5533 Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:43 2024 +0100 flake: add hyprland and cachix commit cdbcd8d1bd173f3f3f2662b9661487bdd5b6590d Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:37 2024 +0100 system/nix: add wheel to trusted users
2024-12-13 18:02:53 +00:00
nixConfig = {
extra-substituters = [
# use nixos cache first
"https://cache.nixos.org?priority=10"
"https://hyprland.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
2024-08-25 19:58:12 +00:00
}