53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
|
|
home-manager.url = "github:nix-community/home-manager?ref=release-24.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
#hyprland.url = "github:hyprwm/Hyprland";
|
|
#nix-colors.url = "github:misterio77/nix-colors";
|
|
stylix.url = "github:danth/stylix/release-24.11";
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
ghostty.url = "github:ghostty-org/ghostty";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, stylix, sops-nix, ghostty, ... } @ inputs: let
|
|
inherit (self) outputs;
|
|
username = "jared";
|
|
in {
|
|
nixosConfigurations = {
|
|
# ============ NixOS Configuration ============ #
|
|
tito = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs username stylix;};
|
|
modules = [
|
|
stylix.nixosModules.stylix
|
|
sops-nix.nixosModules.sops
|
|
./hosts/tito/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.jared = import ./home/jared/home.nix;
|
|
}
|
|
];
|
|
};
|
|
xps = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs username stylix ghostty ;};
|
|
modules = [
|
|
stylix.nixosModules.stylix
|
|
sops-nix.nixosModules.sops
|
|
./hosts/xps/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.jared = import ./home/jared/home.nix;
|
|
}
|
|
];
|
|
|
|
};
|
|
};
|
|
};
|
|
}
|