2024-01-09 23:50:24 +01:00
|
|
|
{
|
|
|
|
description = "ZaneyOS";
|
|
|
|
|
|
|
|
inputs = {
|
2024-01-23 23:07:04 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2024-01-09 23:50:24 +01:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-14 08:27:50 +01:00
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
2024-01-23 21:16:57 +01:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
|
|
hyprland-plugins = {
|
|
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
|
|
inputs.hyprland.follows = "hyprland";
|
|
|
|
};
|
2024-02-02 09:03:47 +01:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-11 11:25:04 +01:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
2024-01-09 23:50:24 +01:00
|
|
|
};
|
|
|
|
|
2024-02-11 11:25:04 +01:00
|
|
|
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
|
2024-01-09 23:50:24 +01:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2024-02-12 03:05:52 +01:00
|
|
|
inherit (import ./options.nix) username hostname;
|
2024-01-15 22:49:11 +01:00
|
|
|
|
2024-01-09 23:50:24 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config = {
|
2024-01-18 05:33:57 +01:00
|
|
|
allowUnfree = true;
|
2024-01-09 23:50:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2024-01-18 05:33:57 +01:00
|
|
|
"${hostname}" = nixpkgs.lib.nixosSystem {
|
2024-02-06 04:46:24 +01:00
|
|
|
specialArgs = {
|
2024-01-18 05:33:57 +01:00
|
|
|
inherit system; inherit inputs;
|
|
|
|
inherit username; inherit hostname;
|
2024-01-13 06:53:25 +01:00
|
|
|
};
|
2024-02-06 04:46:24 +01:00
|
|
|
modules = [
|
|
|
|
./system.nix
|
2024-02-11 11:25:04 +01:00
|
|
|
impermanence.nixosModules.impermanence
|
2024-01-09 23:50:24 +01:00
|
|
|
home-manager.nixosModules.home-manager {
|
2024-02-06 04:46:24 +01:00
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit username; inherit inputs;
|
2024-01-18 05:33:57 +01:00
|
|
|
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
|
2024-01-13 06:53:25 +01:00
|
|
|
};
|
2024-02-06 04:46:24 +01:00
|
|
|
home-manager.useGlobalPkgs = true;
|
2024-02-01 07:27:52 +01:00
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
2024-02-06 04:46:24 +01:00
|
|
|
home-manager.users.${username} = import ./home.nix;
|
|
|
|
}
|
|
|
|
];
|
2024-01-09 23:50:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|