nixos-config/flake.nix

119 lines
3.4 KiB
Nix
Raw Normal View History

2024-04-17 05:52:14 +05:00
{
description = "My system configuration";
2024-11-29 13:31:33 +03:00
nixConfig = {
extra-substituters = [
2025-01-14 19:36:54 +03:00
"https://nix-community.cachix.org"
2024-11-29 13:31:33 +03:00
"https://cache.garnix.io"
"https://hyprland.cachix.org"
2024-12-17 19:25:58 +03:00
"https://ezkea.cachix.org"
2024-11-29 13:31:33 +03:00
];
extra-trusted-public-keys = [
2025-01-14 19:36:54 +03:00
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2024-11-29 13:31:33 +03:00
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
2024-12-17 19:25:58 +03:00
"ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI="
2024-11-29 13:31:33 +03:00
];
};
2024-04-17 05:52:14 +05:00
inputs = {
2024-12-17 19:25:58 +03:00
aagl.url = "github:ezKEa/aagl-gtk-on-nix";
2025-03-30 22:22:46 +03:00
nixpkgs.url = "github:nixos/nixpkgs/30b27177a006d425120fb850a64ceb792636501a";
2025-01-14 19:36:54 +03:00
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
2025-03-30 22:22:46 +03:00
nixpkgs-fixed.url = "github:nixos/nixpkgs/b27ba4eb322d9d2bf2dc9ada9fd59442f50c8d7c";
2024-08-26 22:10:44 +03:00
sops-nix.url = "github:Mic92/sops-nix";
2024-08-27 13:53:48 +03:00
stylix.url = "github:danth/stylix";
2024-09-29 01:27:26 +03:00
ags.url = "github:Aylur/ags";
2024-10-24 21:30:10 +03:00
ayugram-desktop.url = "github:/ayugram-port/ayugram-desktop/release?submodules=1";
2024-04-17 05:52:14 +05:00
2024-11-18 22:00:27 +03:00
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
2024-04-17 05:52:14 +05:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2025-03-30 22:22:46 +03:00
outputs = { self, nixpkgs, nixpkgs-stable, nixpkgs-fixed, home-manager, ... }@inputs: let
system = "x86_64-linux";
in {
2024-08-29 21:56:25 +03:00
nixosConfigurations = {
Rias = nixpkgs.lib.nixosSystem {
2024-08-29 21:56:25 +03:00
specialArgs = {
pkgs-stable = import nixpkgs-stable {
2024-08-29 21:56:25 +03:00
inherit system;
config.allowUnfree = true;
};
2025-03-30 22:22:46 +03:00
pkgs-fixed = import nixpkgs-fixed {
inherit system;
config.allowUnfree = true;
};
2024-08-29 21:56:25 +03:00
inherit inputs system;
2024-04-17 05:52:14 +05:00
};
modules = [ ./host/Rias/configuration.nix ];
2024-08-29 21:56:25 +03:00
};
Senko = nixpkgs.lib.nixosSystem {
2024-09-06 10:51:11 +03:00
specialArgs = {
pkgs-stable = import nixpkgs-stable {
2024-09-06 10:51:11 +03:00
inherit system;
config.allowUnfree = true;
};
2025-03-30 22:22:46 +03:00
pkgs-fixed = import nixpkgs-fixed {
inherit system;
config.allowUnfree = true;
};
2024-09-06 10:51:11 +03:00
inherit inputs system;
};
modules = [ ./host/Senko/configuration.nix ];
2024-09-06 10:51:11 +03:00
};
Eclipse = nixpkgs.lib.nixosSystem {
2024-08-29 21:56:25 +03:00
specialArgs = {
2024-10-31 22:39:16 +03:00
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
2025-03-30 22:22:46 +03:00
pkgs-fixed = import nixpkgs-fixed {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
2024-10-31 22:39:16 +03:00
};
modules = [ ./host/Eclipse/configuration.nix ];
2024-08-29 21:56:25 +03:00
};
2025-04-11 14:16:29 +03:00
Impreza = nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
pkgs-fixed = import nixpkgs-fixed {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
};
modules = [ ./host/Impreza/configuration.nix ];
};
2024-04-17 05:52:14 +05:00
};
2024-12-14 15:18:56 +03:00
devShells."${system}".default = let
pkgs = import nixpkgs { inherit system; };
in pkgs.mkShell {
shellHook = "zsh";
2024-12-14 15:18:56 +03:00
packages = with pkgs; [
cargo
rustc
rust-analyzer
lldb
2024-12-14 15:18:56 +03:00
];
};
2024-04-17 05:52:14 +05:00
};
}