2024-11-21 22:31:12 -07:00
|
|
|
{
|
|
|
|
description = "NixOS Configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# General NixOS config
|
2024-11-24 22:26:46 -07:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
|
2024-11-21 22:31:12 -07:00
|
|
|
# NixOS Grub Themes (hyperfluent)
|
|
|
|
nixos-grub-themes = {
|
|
|
|
url = "github:jeslie0/nixos-grub-themes";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# SDDM Sugar Candy
|
|
|
|
sddm-sugar-candy-nix = {
|
2024-11-21 22:32:17 -07:00
|
|
|
url = "github:Zhaith-Izaliel/sddm-sugar-candy-nix";
|
2024-11-21 22:31:12 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# Home Manager + Plasma
|
|
|
|
home-manager = {
|
2024-11-24 22:26:46 -07:00
|
|
|
url = "github:nix-community/home-manager/master";
|
2024-11-21 22:31:12 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
plasma-manager = {
|
|
|
|
url = "github:nix-community/plasma-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
};
|
|
|
|
# Firefox Nightly + Addons
|
|
|
|
firefox-nightly = {
|
|
|
|
url = "github:nix-community/flake-firefox-nightly";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
firefox-addons = {
|
|
|
|
type = "gitlab";
|
|
|
|
owner = "rycee";
|
|
|
|
repo = "nur-expressions";
|
|
|
|
dir = "/pkgs/firefox-addons";
|
|
|
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
# VSCode extensions
|
|
|
|
vscode-extensions = {
|
|
|
|
url = "github:nix-community/nix-vscode-extensions";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-24 21:38:00 -07:00
|
|
|
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, ... }: let
|
|
|
|
system = "x86_64-linux";
|
2024-11-24 22:26:46 -07:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2024-11-24 21:38:00 -07:00
|
|
|
in {
|
2024-11-21 22:31:12 -07:00
|
|
|
nixosConfigurations.ty-nixos = nixpkgs.lib.nixosSystem {
|
2024-11-24 21:38:00 -07:00
|
|
|
inherit system;
|
2024-11-21 22:31:12 -07:00
|
|
|
|
|
|
|
modules = [
|
2024-11-22 14:14:54 -07:00
|
|
|
./hosts/laptop
|
2024-11-21 22:31:12 -07:00
|
|
|
|
|
|
|
# Home manager
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./home-manager
|
|
|
|
];
|
|
|
|
|
|
|
|
specialArgs = {
|
2024-11-24 21:38:00 -07:00
|
|
|
inherit inputs system;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Add home manager configuration compatibility to the main flake
|
|
|
|
homeConfigurations."ty" = home-manager.lib.homeManagerConfiguration {
|
2024-11-24 22:26:46 -07:00
|
|
|
inherit pkgs;
|
2024-11-24 21:38:00 -07:00
|
|
|
|
|
|
|
# Specify your home configuration modules here, for example,
|
|
|
|
# the path to your home.nix.
|
|
|
|
modules = [
|
|
|
|
plasma-manager.homeManagerModules.plasma-manager
|
|
|
|
./home-manager/home.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs system;
|
2024-11-21 22:31:12 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|