weee new laptoo

This commit is contained in:
Reid 2026-06-07 23:15:03 -07:00
parent c2af5792d1
commit 38b26a082f
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
14 changed files with 148 additions and 141 deletions

View file

@ -10,7 +10,6 @@ in {
(mkAliasOptionModule ["hm"] ["home-manager" "users" config.user.name]) (mkAliasOptionModule ["hm"] ["home-manager" "users" config.user.name])
inputs.base16.nixosModule inputs.base16.nixosModule
inputs.nix-index-database.nixosModules.default inputs.nix-index-database.nixosModules.default
inputs.t2fanrd.nixosModules.t2fanrd
inputs.niri.nixosModules.niri inputs.niri.nixosModules.niri
] ]
++ (mapModulesRec' (toString ./modules) import); ++ (mapModulesRec' (toString ./modules) import);

120
flake.lock generated
View file

@ -1,5 +1,24 @@
{ {
"nodes": { "nodes": {
"asahi": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1780669925,
"narHash": "sha256-inOQx/s7GQjh9bcCjCHXAeX0EHX+sOQUBoo8+bs48ME=",
"owner": "nix-community",
"repo": "nixos-apple-silicon",
"rev": "5880026520a3fd248d59e1c81c4e4e111aefc6af",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-apple-silicon",
"type": "github"
}
},
"base16": { "base16": {
"inputs": { "inputs": {
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
@ -22,9 +41,9 @@
"inputs": { "inputs": {
"cachyos-kernel": "cachyos-kernel_2", "cachyos-kernel": "cachyos-kernel_2",
"cachyos-kernel-patches": "cachyos-kernel-patches", "cachyos-kernel-patches": "cachyos-kernel-patches",
"flake-compat": "flake-compat", "flake-compat": "flake-compat_2",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1776386586, "lastModified": 1776386586,
@ -75,7 +94,7 @@
}, },
"catppuccin": { "catppuccin": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1776420287, "lastModified": 1776420287,
@ -92,6 +111,21 @@
} }
}, },
"flake-compat": { "flake-compat": {
"locked": {
"lastModified": 1761640442,
"narHash": "sha256-AtrEP6Jmdvrqiv4x2xa5mrtaIp3OEe8uBYCDZDS+hu8=",
"owner": "nix-community",
"repo": "flake-compat",
"rev": "4a56054d8ffc173222d09dad23adf4ba946c8884",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1767039857, "lastModified": 1767039857,
@ -107,7 +141,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": { "flake-compat_3": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1767039857, "lastModified": 1767039857,
@ -329,7 +363,7 @@
"inputs": { "inputs": {
"niri-stable": "niri-stable", "niri-stable": "niri-stable",
"niri-unstable": "niri-unstable", "niri-unstable": "niri-unstable",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"xwayland-satellite-stable": "xwayland-satellite-stable", "xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
@ -404,7 +438,7 @@
}, },
"nix-vscode-extensions": { "nix-vscode-extensions": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1777951761, "lastModified": 1777951761,
@ -422,16 +456,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1776311487, "lastModified": 1779560665,
"narHash": "sha256-9U8bL9X/0R9cZD3Uc/mN37AWvv5dB4WQqqjLRAxQfas=", "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cc1e0e027707ad53dddae39d3b3e992262c7d8c7", "rev": "64c08a7ca051951c8eae34e3e3cb1e202fe36786",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable-small", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -469,16 +503,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1776169885, "lastModified": 1776311487,
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", "narHash": "sha256-9U8bL9X/0R9cZD3Uc/mN37AWvv5dB4WQqqjLRAxQfas=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", "rev": "cc1e0e027707ad53dddae39d3b3e992262c7d8c7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixos-unstable-small",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -500,6 +534,22 @@
} }
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": {
"lastModified": 1776169885,
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1777207419, "lastModified": 1777207419,
"narHash": "sha256-V3bmPWAajDiC+1ClDOp55gianW2EyRJSJOyu1RUQibc=", "narHash": "sha256-V3bmPWAajDiC+1ClDOp55gianW2EyRJSJOyu1RUQibc=",
@ -515,7 +565,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1776169885, "lastModified": 1776169885,
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
@ -531,22 +581,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": {
"locked": {
"lastModified": 1754214453,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1772542754, "lastModified": 1772542754,
@ -565,6 +599,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"asahi": "asahi",
"base16": "base16", "base16": "base16",
"cachyos-kernel": "cachyos-kernel", "cachyos-kernel": "cachyos-kernel",
"catppuccin": "catppuccin", "catppuccin": "catppuccin",
@ -574,9 +609,8 @@
"niri": "niri", "niri": "niri",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions", "nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_6",
"systems": "systems_2", "systems": "systems_2",
"t2fanrd": "t2fanrd",
"tt-schemes": "tt-schemes", "tt-schemes": "tt-schemes",
"vicinae": "vicinae", "vicinae": "vicinae",
"vicinae-extensions": "vicinae-extensions" "vicinae-extensions": "vicinae-extensions"
@ -642,24 +676,6 @@
"type": "github" "type": "github"
} }
}, },
"t2fanrd": {
"inputs": {
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1775302822,
"narHash": "sha256-QoK8SYoIc0d/PoRdIUo+fkDNAHZIP2+AJ6PDM9ehGiY=",
"owner": "gnomeddev",
"repo": "t2fanrd",
"rev": "5b1c0c10785b8e8dfe124a4d6aaa7c2becdac65c",
"type": "github"
},
"original": {
"owner": "gnomeddev",
"repo": "t2fanrd",
"type": "github"
}
},
"tt-schemes": { "tt-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -697,7 +713,7 @@
}, },
"vicinae-extensions": { "vicinae-extensions": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_3",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],

View file

@ -15,9 +15,9 @@
nix-index-database.url = "github:nix-community/nix-index-database"; nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; asahi.url = "github:nix-community/nixos-apple-silicon";
t2fanrd.url = "github:gnomeddev/t2fanrd"; cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
niri.url = "github:sodiboo/niri-flake/pull/1731/head"; niri.url = "github:sodiboo/niri-flake/pull/1731/head";

View file

@ -19,9 +19,7 @@
# debug # debug
strace ltrace lsof crosspipe strace ltrace lsof crosspipe
# apps # apps
firefox qalculate-gtk krita inkscape onlyoffice-desktopeditors vlc nicotine-plus transmission_4-gtk font-manager obs-studio imhex pwvucontrol nautilus gnome-disk-utility gnome-text-editor baobab file-roller mission-center loupe gnome-weather kdePackages.kdenlive video-trimmer handbrake blanket blockbench firefox qalculate-gtk krita inkscape libreoffice-fresh vlc nicotine-plus transmission_4-gtk font-manager obs-studio imhex pwvucontrol nautilus gnome-disk-utility gnome-text-editor baobab file-roller mission-center loupe gnome-weather kdePackages.kdenlive video-trimmer handbrake blanket blockbench
# compatibility
wineWow64Packages.waylandFull winetricks
# misc # misc
bat file which packwiz yt-dlp fastfetch hyfetch trashy wev bat file which packwiz yt-dlp fastfetch hyfetch trashy wev
# games # games
@ -119,6 +117,7 @@
tools.git.enable = true; tools.git.enable = true;
tools.gpg.enable = true; tools.gpg.enable = true;
tools.rbw.enable = true; tools.rbw.enable = true;
tools.wine.enable = true;
}; };
}; };
} }

View file

@ -1,58 +0,0 @@
{ pkgs, lib, ... }:
{
# support power features such as suspend to ram
powerManagement.enable = true;
# tune power saving options on boot
powerManagement.powertop.enable = true;
# thermald proactively prevents overheating on intel CPUs and works well with other tools
services.thermald.enable = true;
# power-profile-daemon for power management
services.power-profiles-daemon.enable = true;
# manage fans for macbook devices
# see: https://github.com/GnomedDev/T2FanRD/blob/5b1c0c10785b8e8dfe124a4d6aaa7c2becdac65c/src/config.rs#L62
services.mbpfan.enable = false;
services.t2fanrd.enable = true;
services.t2fanrd.config.Fan1 = {
low_temp = 55;
high_temp = 75;
speed_curve = "linear";
always_full_speed = false;
};
# replace basic t2 kernel with cachyos kernel
# same patches and i trust it to be more up to date (one time the "latest" was EOL for t2,,,)
# also interesting how this supports l4 but my big computer doesn't...
boot.kernelPackages = lib.mkForce pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
# fix wifi firmware
hardware.apple-t2.firmware.enable = true;
# fix sleep/suspend
# ty https://github.com/3ulalia/flake/blob/aaddbef19979c6d952f7a763cd9e6225d6330a02/hosts/catalina/default.nix
systemd.services."suspend-fix-t2" = {
enable = true;
unitConfig = {
Description = "Disable and Re-Enable Apple BCE Module (and Wi-Fi)";
Before = "sleep.target";
StopWhenUnneeded = "yes";
};
serviceConfig = {
User = "root";
Type = "oneshot";
RemainAfterExit = "yes";
ExecStart = [
"/run/current-system/sw/bin/modprobe -r brcmfmac_wcc"
"/run/current-system/sw/bin/modprobe -r brcmfmac"
"/run/current-system/sw/bin/modprobe -r hci_bcm4377"
"/run/current-system/sw/bin/rmmod -f apple-bce"
];
ExecStop = [
"/run/current-system/sw/bin/modprobe apple-bce"
"/run/current-system/sw/bin/modprobe hci_bcm4377"
"/run/current-system/sw/bin/modprobe brcmfmac"
"/run/current-system/sw/bin/modprobe brmcfmac_wcc"
];
};
wantedBy = ["sleep.target"];
};
}

View file

@ -19,9 +19,7 @@
# debug # debug
strace ltrace lsof crosspipe strace ltrace lsof crosspipe
# apps # apps
firefox qalculate-gtk krita inkscape onlyoffice-desktopeditors vlc nicotine-plus transmission_4-gtk font-manager obs-studio imhex pwvucontrol nautilus gnome-disk-utility gnome-text-editor baobab file-roller mission-center loupe gnome-weather kdePackages.kdenlive video-trimmer handbrake blanket blockbench firefox qalculate-gtk krita inkscape libreoffice-fresh vlc nicotine-plus transmission_4-gtk font-manager obs-studio imhex pwvucontrol nautilus gnome-disk-utility gnome-text-editor baobab file-roller mission-center loupe gnome-weather kdePackages.kdenlive video-trimmer handbrake blanket blockbench
# compatibility
wineWow64Packages.waylandFull winetricks
# misc # misc
bat file which packwiz yt-dlp fastfetch hyfetch trashy wev bat file which packwiz yt-dlp fastfetch hyfetch trashy wev
# games # games
@ -99,7 +97,6 @@
# distractions # distractions
distractions.discord.enable = true; distractions.discord.enable = true;
distractions.discord.vesktop = true; distractions.discord.vesktop = true;
distractions.steam.enable = true;
# tools # tools
tools.direnv.enable = true; tools.direnv.enable = true;
tools.easyeffects.enable = true; tools.easyeffects.enable = true;

View file

@ -3,27 +3,26 @@
{ {
imports = imports =
[ [
inputs.hardware.nixosModules.apple-t2 inputs.asahi.nixosModules.apple-silicon-support
(inputs.hardware + "/common/cpu/intel/ice-lake")
(inputs.hardware + "/common/gpu/intel/ice-lake")
inputs.hardware.nixosModules.common-pc-laptop-ssd inputs.hardware.nixosModules.common-pc-laptop-ssd
inputs.hardware.nixosModules.common-pc-laptop inputs.hardware.nixosModules.common-pc-laptop
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
./apple-macbook-air-9-1.nix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = false;
# this makes wi-fi and stuff like that work
# of course, as usual, this is broadcom to blame. Thanks!
hardware.asahi.peripheralFirmwareDirectory = "${pkgs.my.apple-silicon-firmware}/firmware";
modules.hardware = { modules.hardware = {
graphics.i915.enable = true;
audio.enable = true; audio.enable = true;
bluetooth.enable = true; bluetooth.enable = true;
networking.enable = true; networking.enable = true;
@ -32,19 +31,19 @@
}; };
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/0f09afdc-88e4-4764-818b-77828931278f"; { device = "/dev/disk/by-uuid/be826617-c861-48a2-b135-87138c3d2c1a";
fsType = "ext4"; fsType = "btrfs";
options = [ "noatime" ]; options = [ "noatime" ];
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5659-4909"; { device = "/dev/disk/by-uuid/BD6E-1D12";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/f54a2257-f498-4ca0-82af-58f31705cce7"; } [ { device = "/dev/disk/by-uuid/26ebd42b-1dd4-4f4e-935c-b5f9555562dd"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@ -54,6 +53,4 @@
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.end0.useDHCP = lib.mkDefault true; # networking.interfaces.end0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true; # networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,3 +1,3 @@
{ {
system = "x86_64-linux"; system = "aarch64-linux";
} }

View file

@ -8,7 +8,11 @@ in {
laptop = mkEnableOption "Enable laptop specific tweaks"; laptop = mkEnableOption "Enable laptop specific tweaks";
}; };
config = { config = mkMerge [
# TODO: add something here loooool (mkIf cfg.laptop {
}; # services that help w/ battery saving
powerManagement.powertop.enable = true;
services.power-profiles-daemon.enable = true;
})
];
} }

View file

@ -23,7 +23,7 @@ in {
]; ];
}) })
(mkIf cfg.v4l2 { (mkIf cfg.v4l2 {
boot.kernelModules = ["v4l2loopback"]; boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
}) })
]; ];

View file

@ -1,4 +1,5 @@
{ lib, pkgs, inputs, config, ... }: { lib, pkgs, inputs, config, ... }:
let let
gcConfig = { gcConfig = {
automatic = true; automatic = true;
@ -31,7 +32,7 @@ in {
"https://niri.cachix.org" "https://niri.cachix.org"
"https://vicinae.cachix.org" "https://vicinae.cachix.org"
"https://cache.garnix.io" "https://cache.garnix.io"
# "https://cache.soopy.moe" "https://nixos-apple-silicon.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
@ -40,7 +41,7 @@ in {
"niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964=" "niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964="
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc=" "vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
# "cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo=" "nixos-apple-silicon.cachix.org-1:8psDu5SA5dAD7qA0zMy5UT292TxeEPzIz8VVEr2Js20="
]; ];
}; };
}; };

View file

@ -0,0 +1,18 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.software.tools.wine;
in {
options.modules.software.tools.wine = {
enable = mkEnableOption "Enable wine, a compatibility layer to run Windows applications on Linux";
};
config = mkIf cfg.enable {
hm.home.packages = with pkgs; [ wineWow64Packages.waylandFull winetricks ];
# enable windows NT sync primitive driver (semaphores, mutexes, etc.)
# improves performance on wine 11+ and proton 11+
boot.kernelModules = [ "ntsync" ];
};
}

View file

@ -0,0 +1,30 @@
{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "apple-firmware";
version = "1.0.0";
src = fetchFromGitHub {
owner = "binary-star-systems";
repo = "apple-firmware";
rev = "72b625c4b160444def3d9f4a9c0c4704cc1a6e60";
hash = "sha256-h1kseeQnL2I7933fsSUVMjCzZgkAgiGpJVxM60qse5Q=";
};
installPhase = ''
runHook preInstall
mkdir -p "$out/firmware"
cp -r "$src/firmware/." "$out/firmware/"
runHook postInstall
'';
meta = with lib; {
description = "Apple firmware used in m-series (apple silicon) based computers";
homepage = "https://github.com/binary-star-systems/apple-firmware";
# idk what to put here:
# license = licenses.ofl;
platforms = [ "aarch64-linux" ];
};
}

View file

@ -9,8 +9,12 @@ stdenvNoCC.mkDerivation {
# later, add XML files to /usr(?)/share/backgrounds # later, add XML files to /usr(?)/share/backgrounds
# then, it is selectable from places like in gnome and also do the same for KDE # then, it is selectable from places like in gnome and also do the same for KDE
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p "$out/share/backgrounds" mkdir -p "$out/share/backgrounds"
cp -r "$src/img/." "$out/share/backgrounds/" cp -r "$src/img/." "$out/share/backgrounds/"
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {