2023-09-12 18:18:39 +02:00
|
|
|
{
|
|
|
|
description = "flake for nixos-pulse";
|
|
|
|
|
2023-09-29 15:00:10 +02:00
|
|
|
nixConfig = {
|
|
|
|
extra-trusted-substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-09-12 18:18:39 +02:00
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
2023-09-18 14:04:36 +02:00
|
|
|
url = "github:NixOS/nixpkgs/nixos-23.05";
|
2023-09-12 18:18:39 +02:00
|
|
|
};
|
|
|
|
tuxedo-nixos = {
|
|
|
|
url = "github:blitz/tuxedo-nixos";
|
|
|
|
};
|
|
|
|
home-manager = {
|
2023-09-14 18:47:42 +02:00
|
|
|
url = "github:nix-community/home-manager/release-23.05";
|
2023-09-12 18:18:39 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-14 17:21:46 +02:00
|
|
|
emacs-overlay = {
|
|
|
|
url = "github:nix-community/emacs-overlay";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-18 14:04:36 +02:00
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-19 02:51:21 +02:00
|
|
|
nur = {
|
|
|
|
url = "github:nix-community/NUR";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-19 15:14:49 +02:00
|
|
|
nix-wallpaper = {
|
|
|
|
url = "github:lunik1/nix-wallpaper";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-19 16:40:21 +02:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:Mic92/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-29 15:59:14 +02:00
|
|
|
plasma-manager = {
|
|
|
|
url = "github:pjones/plasma-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
};
|
2023-09-12 18:18:39 +02:00
|
|
|
};
|
|
|
|
|
2023-09-19 15:14:49 +02:00
|
|
|
outputs = inputs: let
|
2023-09-19 05:43:42 +02:00
|
|
|
system = "x86_64-linux";
|
2023-09-19 15:14:49 +02:00
|
|
|
customPkgs = import inputs.nixpkgs {
|
2023-09-19 05:43:42 +02:00
|
|
|
system = "${system}";
|
2023-09-19 15:14:49 +02:00
|
|
|
overlays = [inputs.emacs-overlay.overlay];
|
2023-09-19 05:43:42 +02:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2023-09-19 15:14:49 +02:00
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
2023-09-19 05:43:42 +02:00
|
|
|
in {
|
2023-09-14 18:47:42 +02:00
|
|
|
formatter = {
|
2023-09-19 15:14:49 +02:00
|
|
|
x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
2023-09-14 18:47:42 +02:00
|
|
|
};
|
2023-09-18 15:55:29 +02:00
|
|
|
diskoConfigurations = {
|
|
|
|
nixos-pulse = import ./disko.nix;
|
|
|
|
};
|
2023-09-19 05:43:42 +02:00
|
|
|
homeConfigurations = {
|
2023-09-19 15:14:49 +02:00
|
|
|
"tristand" = inputs.home-manager.lib.homeManagerConfiguration {
|
2023-09-19 05:43:42 +02:00
|
|
|
inherit pkgs;
|
2023-09-29 15:59:14 +02:00
|
|
|
inherit inputs;
|
2023-09-19 05:43:42 +02:00
|
|
|
|
|
|
|
modules = [
|
|
|
|
./home.nix
|
|
|
|
{
|
|
|
|
_module.args.customPkgs = customPkgs;
|
|
|
|
}
|
|
|
|
];
|
2023-09-14 18:47:42 +02:00
|
|
|
};
|
2023-09-19 05:43:42 +02:00
|
|
|
};
|
|
|
|
nixosConfigurations = {
|
2023-09-19 15:14:49 +02:00
|
|
|
nixos-pulse = inputs.nixpkgs.lib.nixosSystem {
|
2023-09-12 18:18:39 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2023-09-19 05:43:42 +02:00
|
|
|
./users.nix
|
2023-09-18 17:14:44 +02:00
|
|
|
./disko.nix
|
2023-09-19 15:14:49 +02:00
|
|
|
inputs.disko.nixosModules.disko
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
inputs.tuxedo-nixos.nixosModules.default
|
|
|
|
inputs.nur.nixosModules.nur
|
2023-09-19 16:40:21 +02:00
|
|
|
inputs.nix-index-database.nixosModules.nix-index
|
2023-09-12 21:44:15 +02:00
|
|
|
{
|
2023-09-19 05:43:42 +02:00
|
|
|
_module.args.customPkgs = customPkgs;
|
2023-09-19 15:14:49 +02:00
|
|
|
_module.args.inputs = inputs;
|
2023-09-14 18:47:42 +02:00
|
|
|
nixpkgs.pkgs = customPkgs;
|
2023-09-12 18:49:36 +02:00
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
2023-09-12 21:44:15 +02:00
|
|
|
hardware.tuxedo-control-center.enable = true;
|
2023-09-19 15:14:49 +02:00
|
|
|
hardware.tuxedo-control-center.package = inputs.tuxedo-nixos.packages.x86_64-linux.default;
|
2023-09-12 21:44:15 +02:00
|
|
|
}
|
2023-09-12 18:18:39 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|