nixos-config/flake.nix

128 lines
3.6 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 = [
"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 = [
"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";
2024-11-09 23:11:16 +03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-05-01 15:39:14 +03:00
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
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-11-17 00:43:56 +03:00
tlock.url = "git+https://github.com/eklairs/tlock?submodules=1";
2024-04-17 05:52:14 +05:00
2024-11-23 03:18:00 +03:00
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
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";
};
};
2024-11-23 03:18:00 +03:00
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, ... }@inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ inputs.hyprpanel.overlay ];
};
in {
2024-08-29 21:56:25 +03:00
nixosConfigurations = {
Rias = nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
2024-04-17 05:52:14 +05:00
};
2024-08-29 21:56:25 +03:00
modules = [
./nixos/hosts/Rias/configuration.nix
2024-11-08 01:21:28 +03:00
inputs.sops-nix.nixosModules.sops
2024-08-29 21:56:25 +03:00
];
};
2024-09-06 10:51:11 +03:00
Senko = nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
};
modules = [
./nixos/hosts/Senko/configuration.nix
2024-11-08 01:21:28 +03:00
inputs.sops-nix.nixosModules.sops
2024-09-06 10:51:11 +03:00
];
};
2024-09-29 21:47:41 +03:00
Eclipse = nixpkgs.lib.nixosSystem {
2024-08-29 21:56:25 +03:00
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
};
modules = [
2024-09-29 21:47:41 +03:00
./nixos/hosts/Eclipse/configuration.nix
2024-11-08 01:21:28 +03:00
inputs.sops-nix.nixosModules.sops
2024-08-29 21:56:25 +03:00
];
2024-04-17 05:52:14 +05:00
};
};
2024-08-29 21:56:25 +03:00
homeConfigurations = {
sweetbread = home-manager.lib.homeManagerConfiguration {
2024-11-23 03:18:00 +03:00
inherit pkgs;
2024-10-31 22:39:16 +03:00
extraSpecialArgs = {
inherit inputs;
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
};
2024-08-29 21:56:25 +03:00
modules = [
./home-manager/users/sweetbread/home.nix
inputs.sops-nix.homeManagerModules.sops
inputs.stylix.homeManagerModules.stylix
2024-09-29 01:27:26 +03:00
inputs.ags.homeManagerModules.default
2024-08-29 21:56:25 +03:00
];
};
chest = home-manager.lib.homeManagerConfiguration {
2024-11-23 03:18:00 +03:00
inherit pkgs;
2024-10-31 22:39:16 +03:00
extraSpecialArgs = {
inherit inputs;
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
};
2024-08-29 21:56:25 +03:00
modules = [
./home-manager/users/chest/home.nix
inputs.sops-nix.homeManagerModules.sops
inputs.stylix.homeManagerModules.stylix
2024-10-02 22:10:08 +03:00
inputs.ags.homeManagerModules.default
2024-08-29 21:56:25 +03:00
];
};
2024-04-17 05:52:14 +05:00
};
};
}