2024-09-13 14:55:27 -07:00
|
|
|
{
|
|
|
|
description = "Joey's Flake";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-09-16 16:45:05 -07:00
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
2024-09-16 16:45:05 -07:00
|
|
|
stylix = {
|
|
|
|
url = "github:danth/stylix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-conf-editor = {
|
|
|
|
url = "github:snowfallorg/nixos-conf-editor";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
plasma-manager = {
|
|
|
|
url = "github:nix-community/plasma-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
};
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
2024-09-15 21:46:24 -07:00
|
|
|
outputs = inputs@{
|
2024-09-13 14:55:27 -07:00
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-unstable,
|
|
|
|
home-manager,
|
|
|
|
...
|
2024-09-15 21:46:24 -07:00
|
|
|
}:
|
|
|
|
let
|
2024-09-17 13:56:38 -07:00
|
|
|
systemSettings = {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
hostname = "joey-laptop";
|
|
|
|
};
|
|
|
|
userSettings = {
|
|
|
|
user = "joey";
|
2024-09-21 01:59:11 -07:00
|
|
|
theme = "gruvbox-cool";
|
2024-09-17 13:56:38 -07:00
|
|
|
wm = "plasma";
|
|
|
|
};
|
2024-09-15 21:46:24 -07:00
|
|
|
lib = nixpkgs.lib;
|
2024-09-17 13:56:38 -07:00
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
system = systemSettings.system;
|
|
|
|
config = { allowUnfreePredicate = (_: true); };
|
|
|
|
};
|
|
|
|
pkgs-unstable = nixpkgs-unstable.legacyPackages.${systemSettings.system};
|
|
|
|
|
|
|
|
|
2024-09-15 21:46:24 -07:00
|
|
|
in {
|
2024-09-13 14:55:27 -07:00
|
|
|
nixosConfigurations = {
|
2024-09-17 13:56:38 -07:00
|
|
|
${systemSettings.hostname} = lib.nixosSystem {
|
2024-09-13 14:55:27 -07:00
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
inputs.hyprland.nixosModules.default
|
2024-09-15 21:46:24 -07:00
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
2024-09-13 14:55:27 -07:00
|
|
|
];
|
2024-09-17 13:56:38 -07:00
|
|
|
system = systemSettings.system;
|
|
|
|
specialArgs = {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit pkgs-unstable;
|
|
|
|
inherit systemSettings;
|
|
|
|
inherit userSettings;
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
2024-09-16 16:03:52 -07:00
|
|
|
};
|
2024-09-16 13:45:18 -07:00
|
|
|
homeConfigurations = {
|
2024-09-17 13:56:38 -07:00
|
|
|
${userSettings.user} = home-manager.lib.homeManagerConfiguration {
|
2024-09-16 16:03:52 -07:00
|
|
|
modules = [
|
2024-09-17 13:56:38 -07:00
|
|
|
./home-manager/home.nix
|
2024-09-16 16:03:52 -07:00
|
|
|
inputs.stylix.homeManagerModules.stylix
|
2024-09-16 16:45:05 -07:00
|
|
|
inputs.plasma-manager.homeManagerModules.plasma-manager
|
2024-09-17 13:56:38 -07:00
|
|
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
2024-09-16 16:03:52 -07:00
|
|
|
];
|
2024-09-17 13:56:38 -07:00
|
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit pkgs-unstable;
|
|
|
|
inherit systemSettings;
|
|
|
|
inherit userSettings;
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-09-16 13:45:18 -07:00
|
|
|
};
|
|
|
|
};
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
|
|
|
}
|
2024-09-16 16:03:52 -07:00
|
|
|
|