mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
Re-add Laptop
This commit is contained in:
parent
0cbb356770
commit
181b4a6b62
3 changed files with 212 additions and 56 deletions
163
flake.nix
163
flake.nix
|
@ -38,66 +38,117 @@
|
|||
nixos-hardware,
|
||||
...
|
||||
}: {
|
||||
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 = {
|
||||
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 = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
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" ];
|
||||
}
|
||||
];
|
||||
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 {
|
||||
system = "x86_64-linux";
|
||||
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" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue