put shell in subdir, and add nix package

This commit is contained in:
kossLAN 2025-06-17 12:50:08 -04:00
parent c45c04e9ac
commit f41ea4b1cb
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
100 changed files with 57 additions and 126 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "kossLAN's quickshell dots";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = {
self,
nixpkgs,
}: let
forEachSystem = fn:
nixpkgs.lib.genAttrs
["x86_64-linux" "aarch64-linux"]
(system: fn system nixpkgs.legacyPackages.${system});
in {
packages = forEachSystem (system: pkgs: rec {
default = minmat;
minmat = pkgs.stdenv.mkDerivation {
pname = "minmat";
version = "0.1.0";
src = ./shell;
installPhase = ''
mkdir -p $out/etc/quickshell
cp -r * $out/etc/quickshell
'';
};
});
};
}