mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Fix pkgs
This commit is contained in:
parent
7a0ea882c5
commit
7bf3d8fd7c
5 changed files with 15 additions and 44 deletions
27
flake.nix
27
flake.nix
|
|
@ -17,32 +17,7 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs' = (import inputs.nixpkgs { inherit system; }).applyPatches {
|
||||
name = "nixpkgs-unstable-patched";
|
||||
src = inputs.nixpkgs;
|
||||
patches = [
|
||||
(builtins.fetchurl {
|
||||
url =
|
||||
"https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/369042.patch";
|
||||
sha256 =
|
||||
"sha256:08asxmd34rzaxb8dr4nccy26k3vxnx7psy2imnp40fdplqna0a85";
|
||||
})
|
||||
(builtins.fetchurl {
|
||||
url =
|
||||
"https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/368790.patch";
|
||||
sha256 =
|
||||
"sha256:1blsawm4l30wkrdkvvq0fw2aki7v921isdwrk9dw8yh09cglbfd9";
|
||||
})
|
||||
(builtins.fetchurl {
|
||||
url =
|
||||
"https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/368091.patch";
|
||||
sha256 =
|
||||
"sha256:11qnwrq8sgbmxiy9qvv7q2lbl824x90p2iklf3kjf9yb3c2dx9nj";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
pkgs = import pkgs' { inherit system; };
|
||||
pkgs = import inputs.nixpkgs { inherit system; };
|
||||
|
||||
utils = import ./utils.nix { inherit inputs system pkgs; };
|
||||
in {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ in {
|
|||
mods.server.astral.autoStart = false;
|
||||
|
||||
mods.server.sync.enable = true;
|
||||
mods.tailscale.enable = false;
|
||||
mods.tailscale.enable = true;
|
||||
mods.openvpn.enable = false;
|
||||
mods.wireguard.id = 4;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
# password manager
|
||||
bitwarden-desktop
|
||||
|
||||
# file management
|
||||
krusader
|
||||
|
||||
# documents
|
||||
# texliveFull
|
||||
# texstudio
|
||||
|
|
|
|||
|
|
@ -1,21 +1,12 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.unfree;
|
||||
mkPackages = mod:
|
||||
if cfg.${mod}.enable then
|
||||
cfg.${mod}.packages else [];
|
||||
mkPackages = mod: if cfg.${mod}.enable then cfg.${mod}.packages else [ ];
|
||||
|
||||
in {
|
||||
imports = [
|
||||
./steam.nix
|
||||
./nvidia.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
imports = [ ./steam.nix ./nvidia.nix ./minecraft.nix ];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) (
|
||||
(mkPackages "steam") ++
|
||||
(mkPackages "minecraft") ++
|
||||
(mkPackages "nvidia")
|
||||
);
|
||||
builtins.elem (lib.getName pkg)
|
||||
((mkPackages "steam") ++ (mkPackages "minecraft") ++ (mkPackages "nvidia"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
{ inputs, system, pkgs, ... }: {
|
||||
{ inputs, system, pkgs, ... }:
|
||||
let nixpkgs = inputs.nixpkgs;
|
||||
in {
|
||||
mkHost = host:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system pkgs; };
|
||||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system; };
|
||||
|
||||
modules = [
|
||||
host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue