126 lines
3.5 KiB
Nix
126 lines
3.5 KiB
Nix
{
|
|
description = "My system configuration";
|
|
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://cache.garnix.io"
|
|
"https://hyprland.cachix.org"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
];
|
|
};
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
stylix.url = "github:danth/stylix";
|
|
ags.url = "github:Aylur/ags";
|
|
ayugram-desktop.url = "github:/ayugram-port/ayugram-desktop/release?submodules=1";
|
|
tlock.url = "git+https://github.com/eklairs/tlock?submodules=1";
|
|
|
|
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, ... }@inputs: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ inputs.hyprpanel.overlay ];
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
Rias = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
inherit inputs system;
|
|
};
|
|
modules = [
|
|
./nixos/hosts/Rias/configuration.nix
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
|
|
Senko = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
inherit inputs system;
|
|
};
|
|
modules = [
|
|
./nixos/hosts/Senko/configuration.nix
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
|
|
Eclipse = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
inherit inputs system;
|
|
};
|
|
modules = [
|
|
./nixos/hosts/Eclipse/configuration.nix
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
sweetbread = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
};
|
|
modules = [
|
|
./home-manager/users/sweetbread/home.nix
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
inputs.stylix.homeManagerModules.stylix
|
|
inputs.ags.homeManagerModules.default
|
|
];
|
|
};
|
|
|
|
chest = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
pkgs-stable = import nixpkgs-stable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
};
|
|
modules = [
|
|
./home-manager/users/chest/home.nix
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
inputs.stylix.homeManagerModules.stylix
|
|
inputs.ags.homeManagerModules.default
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|