nix-conf/flake.nix

155 lines
4.9 KiB
Nix
Raw Normal View History

2023-02-20 16:38:19 +01:00
{
2023-05-19 12:08:06 +02:00
description = "jopejoe1 NixOS configuration";
inputs = {
2023-06-30 18:34:53 +02:00
nixpkgs.url = github:NixOS/nixpkgs;#/nixos-unstable;
2023-02-20 16:38:19 +01:00
nur.url = github:nix-community/NUR;
2023-05-19 12:08:06 +02:00
home-manager= {
2023-02-20 16:38:19 +01:00
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
2023-05-19 20:58:48 +02:00
prismlauncher = {
2023-05-19 21:08:33 +02:00
url = github:PrismLauncher/PrismLauncher;
2023-05-19 20:58:48 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-05-19 21:08:33 +02:00
nixos-hardware.url = github:NixOS/nixos-hardware;
2023-05-19 21:51:53 +02:00
tela-icon-theme = {
2023-05-19 22:27:09 +02:00
url = github:vinceliuice/Tela-icon-theme;
flake = false;
};
2023-05-19 22:47:42 +02:00
# PrismLauncher Patches
prism-game-options-patch = {
2023-05-19 22:27:09 +02:00
url = "https://patch-diff.githubusercontent.com/raw/PrismLauncher/PrismLauncher/pull/907.patch";
2023-05-19 21:51:53 +02:00
flake = false;
};
2023-05-19 22:47:42 +02:00
prism-ftb-patch = {
url = "https://github.com/AdenMck/PrismLauncher/commit/36df231f7ad5f8d54d08c4d2c5f99f6d000fc507.patch";
flake = false;
};
2023-02-20 16:38:19 +01:00
};
2023-02-23 20:34:35 +01:00
2023-05-19 12:08:06 +02:00
outputs = inputs@{
self,
nixpkgs,
home-manager,
2023-05-19 20:55:50 +02:00
prismlauncher,
2023-05-19 20:56:21 +02:00
nur,
2023-05-19 21:08:33 +02:00
nixos-hardware,
2023-05-19 12:08:06 +02:00
...
}: {
2023-07-10 10:17:10 +02:00
nixosConfigurations = {
kami = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./systems/kami
./modules/audio
./modules/bluetooth
./modules/local
./modules/nix
./modules/plasma
./modules/printing
#./modules/ssh
./modules/steam
./modules/users/jopejoe1
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.common-gpu-nvidia
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-pc-ssd
nur.nixosModules.nur
home-manager.nixosModules.home-manager
{
nixpkgs = {
config.allowUnfree = true;
overlays = [
prismlauncher.overlays.default
nur.overlay
(self: super: {
tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: {
src = inputs.tela-icon-theme;
});
prismlauncher = super.prismlauncher.overrideAttrs (old: {
patches = (old.patches or []) ++ [
inputs.prism-game-options-patch
inputs.prism-ftb-patch
];
});
discord = super.discord.overrideAttrs (old: {
desktopItem = old.desktopItem.override (old: { exec = old.exec + " --disable-gpu-sandbox"; });
});
})
];
};
home-manager = {
2023-05-19 21:34:43 +02:00
useGlobalPkgs = true;
useUserPackages = true;
2023-07-10 10:17:10 +02:00
};
2023-05-19 21:34:43 +02:00
2023-07-10 10:17:10 +02:00
system.stateVersion = "23.05";
2023-05-19 21:34:43 +02:00
2023-07-10 10:17:10 +02:00
nix.registry = {
home-manager.flake = home-manager;
nixos-hardware.flake = nixos-hardware;
nur.flake = nur;
nixpkgs.flake = nixpkgs;
};
nix.nixPath = [ "nixpkgs=/etc/channels/nixpkgs" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ];
}
];
};
yokai = nixpkgs.lib.nixosSystem {
2023-07-10 10:30:12 +02:00
system = "aarch64-linux";
2023-07-10 10:17:10 +02:00
specialArgs = inputs;
modules = [
./systems/yokai
./modules/audio
./modules/bluetooth
./modules/local
./modules/nix
./modules/plasma
./modules/printing
#./modules/ssh
./modules/users/jopejoe1
nixos-hardware.nixosModules.pine64-pinebook-pro
nur.nixosModules.nur
home-manager.nixosModules.home-manager
{
nixpkgs = {
config.allowUnfree = true;
overlays = [
prismlauncher.overlays.default
nur.overlay
(self: super: {
tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: {
src = inputs.tela-icon-theme;
});
discord = super.discord.overrideAttrs (old: {
desktopItem = old.desktopItem.override (old: { exec = old.exec + " --disable-gpu-sandbox"; });
});
})
];
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
system.stateVersion = "23.05";
nix.registry = {
home-manager.flake = home-manager;
nixos-hardware.flake = nixos-hardware;
nur.flake = nur;
nixpkgs.flake = nixpkgs;
};
nix.nixPath = [ "nixpkgs=/etc/channels/nixpkgs" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ];
}
];
};
2023-02-22 17:56:24 +01:00
};
2023-05-16 14:55:15 +02:00
};
2023-02-20 16:38:19 +01:00
}