grimm-nixos-laptop/flake.nix

72 lines
2.1 KiB
Nix
Raw Normal View History

2023-11-28 23:36:44 +01:00
{
description = "grimmauld-nixos";
inputs = {
nixpkgs = {
2024-03-02 23:15:51 +01:00
url = "github:NixOS/nixpkgs/nixos-unstable";
2023-11-28 23:36:44 +01:00
};
2024-03-09 18:24:55 +01:00
chaotic = {
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
swaymux = {
url = "git+https://git.grimmauld.de/Grimmauld/swaymux";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-30 00:03:46 +01:00
swayfx = {
url = "github:WillPower3309/swayfx";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-16 18:28:01 +01:00
shared = {
2024-03-17 11:30:33 +01:00
url = "git+https://git.grimmauld.de/Grimmauld/grimm-nix-shared";
2024-03-09 18:24:55 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-11-28 23:36:44 +01:00
};
2024-03-16 18:28:01 +01:00
outputs = inputs @ { self, agenix, shared, nixpkgs, chaotic, swayfx, swaymux, ... }: let
2023-11-30 00:03:46 +01:00
system = "x86_64-linux";
# pkg-overlays = import nixpkgs {
# inherit system;
# config.allowUnfree = true;
# overlays = [self.overlays.default];
# };
2023-11-30 00:03:46 +01:00
in {
# overlays.default = import ./overlay.nix {inherit inputs system;};
2023-11-30 00:03:46 +01:00
2023-11-28 23:36:44 +01:00
nixosConfigurations = {
grimmauld-nixos = nixpkgs.lib.nixosSystem {
2023-11-30 00:03:46 +01:00
inherit system;
2024-03-09 18:24:55 +01:00
specialArgs = { inherit inputs system; };
2023-11-28 23:36:44 +01:00
modules = [
# ({ config, pkgs, ... }: { nixpkgs.overlays = [ (import ./overlay.nix {inherit inputs system;} ) ]; })
2024-02-02 12:59:59 +01:00
agenix.nixosModules.default
2024-03-02 23:15:51 +01:00
chaotic.nixosModules.default
2024-03-16 18:28:01 +01:00
shared.nixosModules.default
2024-03-09 18:24:55 +01:00
# swaymux.nixosModules.default
# ./kernel.nix
2023-11-28 23:36:44 +01:00
./configuration.nix
2023-11-29 23:00:53 +01:00
./modules/sway.nix
./modules/users.nix
./modules/tlp.nix
./modules/fonts.nix
2024-03-16 18:28:01 +01:00
./modules/screenshare_select.nix
# ./modules/spotify-tui.nix
2023-11-29 23:00:53 +01:00
./modules/tabletdriver.nix
./modules/xserver.nix
./modules/system-packages.nix
2024-03-05 19:06:58 +01:00
# ./modules/kvm.nix
./modules/cloudsync.nix
2024-02-02 12:59:59 +01:00
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
2023-11-28 23:36:44 +01:00
];
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
2023-11-28 23:36:44 +01:00
};
}