2024-02-29 17:06:55 -05:00
|
|
|
{
|
2024-03-13 14:17:21 -04:00
|
|
|
description = "Aly's NixOS flake.";
|
2024-02-29 17:06:55 -05:00
|
|
|
|
|
|
|
inputs = {
|
2024-06-22 23:38:24 -04:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-07-09 19:17:53 -04:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
agenix = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
};
|
|
|
|
|
|
|
|
disko = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
};
|
2024-06-22 23:38:24 -04:00
|
|
|
|
2024-07-09 19:17:53 -04:00
|
|
|
iio-hyprland = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:JeanSchoeller/iio-hyprland";
|
|
|
|
};
|
|
|
|
|
2024-08-24 15:25:41 -04:00
|
|
|
lanzaboote = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-08-26 18:35:57 -04:00
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
2024-08-24 15:25:41 -04:00
|
|
|
};
|
|
|
|
|
2024-07-09 19:17:53 -04:00
|
|
|
nixhw = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:alyraffauf/nixhw";
|
|
|
|
};
|
|
|
|
|
2024-07-06 19:58:17 -04:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2024-07-09 19:17:53 -04:00
|
|
|
|
2024-08-15 17:12:48 -04:00
|
|
|
stylix = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:danth/stylix";
|
|
|
|
};
|
2024-03-12 22:44:08 -04:00
|
|
|
};
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-03-21 13:00:26 -04:00
|
|
|
nixConfig = {
|
2024-07-09 19:17:53 -04:00
|
|
|
accept-flake-config = true;
|
|
|
|
|
2024-07-08 17:54:12 -04:00
|
|
|
extra-substituters = [
|
|
|
|
"https://alyraffauf.cachix.org"
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
2024-07-09 19:17:53 -04:00
|
|
|
|
2024-03-21 13:00:26 -04:00
|
|
|
extra-trusted-public-keys = [
|
2024-07-08 17:54:12 -04:00
|
|
|
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM="
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2024-03-21 13:00:26 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-07-09 19:17:53 -04:00
|
|
|
outputs = {self, ...}: let
|
2024-09-05 22:41:27 -04:00
|
|
|
allSystems = [
|
2024-05-24 09:37:37 -04:00
|
|
|
"aarch64-linux"
|
2024-07-07 23:06:17 -04:00
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-darwin"
|
2024-05-24 09:37:37 -04:00
|
|
|
"x86_64-darwin"
|
2024-07-07 23:06:17 -04:00
|
|
|
];
|
|
|
|
|
2024-09-05 22:41:27 -04:00
|
|
|
forAllSystems = f:
|
|
|
|
self.inputs.nixpkgs.lib.genAttrs allSystems (system:
|
|
|
|
f {
|
|
|
|
pkgs = import self.inputs.nixpkgs {inherit system;};
|
|
|
|
});
|
2024-07-07 23:06:17 -04:00
|
|
|
|
2024-07-09 19:17:53 -04:00
|
|
|
forAllHosts = self.inputs.nixpkgs.lib.genAttrs [
|
2024-07-07 23:06:17 -04:00
|
|
|
"fallarbor"
|
|
|
|
"lavaridge"
|
|
|
|
"mauville"
|
|
|
|
"petalburg"
|
|
|
|
"rustboro"
|
2024-08-22 06:21:00 -04:00
|
|
|
"slateport"
|
2024-07-07 23:06:17 -04:00
|
|
|
];
|
|
|
|
in {
|
2024-09-05 22:41:27 -04:00
|
|
|
devShells = forAllSystems ({pkgs}: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages =
|
|
|
|
(with pkgs; [
|
|
|
|
git
|
|
|
|
nh
|
|
|
|
mdformat
|
|
|
|
ruby
|
|
|
|
update-nix-fetchgit
|
|
|
|
])
|
|
|
|
++ [
|
|
|
|
self.formatter.${pkgs.system}
|
|
|
|
self.inputs.agenix.packages.${pkgs.system}.default
|
|
|
|
self.packages.${pkgs.system}.default
|
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
2024-07-07 23:06:17 -04:00
|
|
|
|
2024-09-05 22:41:27 -04:00
|
|
|
packages = forAllSystems ({pkgs}: {
|
|
|
|
default = pkgs.writeShellApplication {
|
2024-07-09 19:17:53 -04:00
|
|
|
name = "clean-install";
|
|
|
|
text = ./flake/clean-install.sh;
|
|
|
|
};
|
2024-07-07 23:06:17 -04:00
|
|
|
});
|
2024-05-25 19:48:54 -04:00
|
|
|
|
2024-07-07 21:07:35 -04:00
|
|
|
homeManagerModules = {
|
2024-07-09 19:17:53 -04:00
|
|
|
default = import ./homeManagerModules self;
|
2024-08-22 08:58:00 -04:00
|
|
|
aly = import ./homes/aly/gui.nix self;
|
|
|
|
aly-nox = import ./homes/aly/nox.nix self;
|
2024-07-09 19:17:53 -04:00
|
|
|
dustin = import ./homes/dustin self;
|
|
|
|
morgan = import ./homes/morgan self;
|
2024-07-07 21:07:35 -04:00
|
|
|
};
|
2024-06-11 14:25:31 -04:00
|
|
|
|
2024-07-07 19:17:35 -04:00
|
|
|
nixosModules = {
|
2024-08-22 07:46:19 -04:00
|
|
|
common-auto-upgrade = import ./common/autoUpgrade.nix;
|
|
|
|
common-base = import ./common/base.nix;
|
|
|
|
common-locale = import ./common/locale.nix;
|
|
|
|
common-mauville-share = import ./common/samba.nix;
|
|
|
|
common-nix = import ./common/nix.nix;
|
|
|
|
common-overlays = import ./common/overlays.nix;
|
|
|
|
common-pkgs = import ./common/pkgs.nix;
|
|
|
|
common-tailscale = import ./common/tailscale.nix;
|
|
|
|
common-wifi-profiles = import ./common/wifi.nix;
|
|
|
|
|
2024-07-09 19:17:53 -04:00
|
|
|
nixos = import ./nixosModules self;
|
|
|
|
users = import ./userModules self;
|
2024-07-07 19:17:35 -04:00
|
|
|
};
|
2024-07-07 17:12:00 -04:00
|
|
|
|
2024-07-07 23:06:17 -04:00
|
|
|
nixosConfigurations = forAllHosts (
|
|
|
|
host:
|
2024-07-09 19:17:53 -04:00
|
|
|
self.inputs.nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit self;};
|
2024-07-07 23:06:17 -04:00
|
|
|
modules = [
|
|
|
|
./hosts/${host}
|
2024-07-09 19:17:53 -04:00
|
|
|
self.inputs.agenix.nixosModules.default
|
|
|
|
self.inputs.disko.nixosModules.disko
|
|
|
|
self.inputs.home-manager.nixosModules.home-manager
|
2024-08-24 15:25:41 -04:00
|
|
|
self.inputs.lanzaboote.nixosModules.lanzaboote
|
2024-08-15 15:55:39 -04:00
|
|
|
self.inputs.stylix.nixosModules.stylix
|
2024-07-07 23:06:17 -04:00
|
|
|
self.nixosModules.nixos
|
|
|
|
self.nixosModules.users
|
|
|
|
{
|
|
|
|
home-manager = {
|
|
|
|
backupFileExtension = "backup";
|
2024-07-09 19:17:53 -04:00
|
|
|
extraSpecialArgs = {inherit self;};
|
2024-07-07 23:06:17 -04:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
);
|
2024-04-07 22:16:33 -04:00
|
|
|
};
|
2024-03-06 22:14:16 -05:00
|
|
|
}
|