zaneyos/flake.nix

57 lines
1.6 KiB
Nix
Raw Normal View History

2024-01-09 23:50:24 +01:00
{
description = "ZaneyOS";
inputs = {
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";
nix-colors.url = "github:misterio77/nix-colors";
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";
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 = {
allowUnfree = true;
2024-01-09 23:50:24 +01:00
};
};
in {
nixosConfigurations = {
"${hostname}" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system; inherit inputs;
inherit username; inherit hostname;
2024-01-13 06:53:25 +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 {
home-manager.extraSpecialArgs = {
inherit username; inherit inputs;
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
2024-01-13 06:53:25 +01:00
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.${username} = import ./home.nix;
}
];
2024-01-09 23:50:24 +01:00
};
};
};
}