refactor: use non-flake inputs instead of fetchers
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2023-12-31 15:44:53 -05:00
parent 68beb6118f
commit 9f2b537bf7
27 changed files with 470 additions and 272 deletions

View file

@ -41,7 +41,7 @@
themes = { themes = {
dracula-bat = { dracula-bat = {
src = pkgs.dracula-theme; src = pkgs.dracula-theme;
file = "bat/Dracula.tmTheme"; file = "bat";
}; };
}; };
extraPackages = with pkgs.bat-extras; [ extraPackages = with pkgs.bat-extras; [

View file

@ -1,5 +1,5 @@
{pkgs, ...}: let {pkgs, ...} @ inputs: let
trash = pkgs.callPackage ./trash-d.nix pkgs; trash = pkgs.callPackage ./trash-d.nix inputs;
in { in {
home.packages = [trash]; home.packages = [trash];

View file

@ -1,6 +1,6 @@
{ {
trash-d-src,
stdenv, stdenv,
fetchFromGitHub,
dmd, dmd,
dub, dub,
ronn, ronn,
@ -8,14 +8,9 @@
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "trash"; name = "trash";
version = "unstable"; version = trash-d-src.rev;
src = fetchFromGitHub { src = trash-d-src;
owner = "rushsteve1";
repo = "trash-d";
rev = "d88bb672612761c8e299e717857bf9c85a903e99";
hash = "sha256-oPxeoEqOYf6DCg5rJxINqAIlMbxqzAJcZDUY/EzADzY=";
};
buildInputs = [dub dmd ronn]; buildInputs = [dub dmd ronn];

View file

@ -2,11 +2,11 @@
neovim-flake, neovim-flake,
nixpkgs-wayland, nixpkgs-wayland,
... ...
}: { } @ inputs: {
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./dracula-theme) (import ./dracula-theme inputs)
(import ./plymouth) (import ./plymouth inputs)
(import ./spotifywm) (import ./spotifywm inputs)
(import ./squeekboard) (import ./squeekboard)
neovim-flake.overlay neovim-flake.overlay

View file

@ -1,20 +0,0 @@
{
stdenv,
fetchFromGitHub,
...
}:
stdenv.mkDerivation {
name = "dracula-bat";
src = fetchFromGitHub {
owner = "matt1432";
repo = "bat";
rev = "270bce892537311ac92494a2a7663e3ecf772092";
hash = "sha256-UyZ3WFfrEEBjtdb//5waVItmjKorkOiNGtu9eeB3lOw=";
};
installPhase = ''
mkdir -p $out/bat
cp -a ./Dracula.tmTheme $out/bat
'';
}

View file

@ -1,17 +1,14 @@
(final: prev: { {
bat-theme-src,
xresources-theme-src,
...
} @ inputs: (final: prev: {
dracula-theme = prev.dracula-theme.overrideAttrs (oldAttrs: let dracula-theme = prev.dracula-theme.overrideAttrs (oldAttrs: let
bat-colors = prev.callPackage ./bat.nix prev; git-colors = prev.callPackage ./git.nix inputs;
git-colors = prev.callPackage ./git.nix prev; plymouth = prev.callPackage ./plymouth.nix inputs;
plymouth = prev.callPackage ./plymouth.nix prev;
Xresources = prev.callPackage ./xresources.nix prev;
wallpaper = prev.fetchurl (import ./wallpaper.nix); wallpaper = prev.fetchurl (import ./wallpaper.nix);
in { in {
src = prev.fetchFromGitHub { src = inputs.gtk-theme-src;
owner = "dracula";
repo = "gtk";
rev = "80d5a3fedf280e9cc7f2df3b100a1082c3bcd1cc";
hash = "sha256-BPL0Msva1/sPQKPeRJHgvU+xXU3m8b2E6aDBLmXbkkA=";
};
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -19,10 +16,10 @@
mkdir -p $out/share/plymouth/themes $out/wallpapers mkdir -p $out/share/plymouth/themes $out/wallpapers
cp -a ${wallpaper} $out/wallpapers/waves.png cp -a ${wallpaper} $out/wallpapers/waves.png
cp -a ${bat-colors}/bat $out/bat cp -a ${bat-theme-src}/Dracula.tmTheme $out/bat
cp -a ${git-colors}/git-colors $out/git-colors cp -a ${git-colors}/git-colors $out/git-colors
cp -a ${plymouth}/share/plymouth/themes/dracula $out/share/plymouth/themes/ cp -a ${plymouth}/share/plymouth/themes/dracula $out/share/plymouth/themes/
cp -a ${Xresources}/xres $out/xres cp -a ${xresources-theme-src}/Xresources $out/xres
# ------------------------------------------- # -------------------------------------------
mkdir -p $out/share/themes/Dracula mkdir -p $out/share/themes/Dracula

View file

@ -1,17 +1,13 @@
{ {
stdenv, stdenv,
fetchFromGitHub, git-theme-src,
... ...
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "dracula-git"; name = "dracula-git";
version = git-theme-src.rev;
src = fetchFromGitHub { src = git-theme-src;
owner = "dracula";
repo = "git";
rev = "924d5fc32f7ca15d0dd3a8d2cf1747e81e063c73";
hash = "sha256-3tKjKn5IHIByj+xgi2AIL1vZANlb0vlYJsPjH6BHGxM=";
};
installPhase = '' installPhase = ''
# Git colors # Git colors

View file

@ -1,17 +1,13 @@
{ {
stdenv, stdenv,
fetchFromGitHub, plymouth-theme-src,
... ...
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "dracula-plymouth"; name = "dracula-plymouth";
version = plymouth-theme-src.rev;
src = fetchFromGitHub { src = plymouth-theme-src;
owner = "dracula";
repo = "plymouth";
rev = "37aa09b27ecee4a825b43d2c1d20b502e8f19c96";
hash = "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=";
};
installPhase = let installPhase = let
dracula-script = ./dracula-plymouth.patch; dracula-script = ./dracula-plymouth.patch;

View file

@ -1,4 +1,4 @@
{ {
url = "https://github.com/aynp/dracula-wallpapers/blob/main/Art/4k/Waves%201.png?raw=true"; url = "https://raw.githubusercontent.com/aynp/dracula-wallpapers/main/Art/4k/Waves%201.png";
hash = "sha256-f9FwSOSvqTeDj4bOjYUQ6TM+/carCD9o5dhg/MnP/lk="; hash = "sha256-f9FwSOSvqTeDj4bOjYUQ6TM+/carCD9o5dhg/MnP/lk=";
} }

View file

@ -1,20 +0,0 @@
{
stdenv,
fetchFromGitHub,
...
}:
stdenv.mkDerivation {
name = "dracula-xresources";
src = fetchFromGitHub {
owner = "dracula";
repo = "xresources";
rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3";
hash = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY=";
};
installPhase = ''
mkdir -p $out/xres
cp -a ./Xresources $out/xres/
'';
}

View file

@ -1,16 +1,6 @@
final: prev: { {plymouth-src, ...}: (final: prev: {
plymouth = prev.plymouth.overrideAttrs (o: { plymouth = prev.plymouth.overrideAttrs (o: {
version = "unstable-2023-12-08"; version = plymouth-src.rev;
src = plymouth-src;
src = prev.fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "plymouth";
repo = "plymouth";
# https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/236
# Last commit that works
rev = "58cc9f84e456ab0510b13d7bdbc13697467ca7be";
hash = "sha256-hgQ8nCphR4hc+WTNtS8GgBrC54uYnvTCp7kjgB/u5lE=";
};
}); });
} })

View file

@ -1,3 +1,3 @@
(final: prev: { {...} @ inputs: (final: prev: {
spotifywm = final.callPackage ./spotifywm.nix {}; spotifywm = final.callPackage ./spotifywm.nix inputs;
}) })

View file

@ -2,26 +2,20 @@
{ {
lib, lib,
stdenv, stdenv,
fetchFromGitHub, spotifywm-src,
libX11, libX11,
makeBinaryWrapper, makeBinaryWrapper,
spotify, spotify,
symlinkJoin, symlinkJoin,
...
}: let }: let
spotifywm = stdenv.mkDerivation { spotifywm = stdenv.mkDerivation {
pname = "spotifywm"; pname = "spotifywm";
version = "unstable-2022-10-25"; version = spotifywm-src.rev;
src = fetchFromGitHub { src = spotifywm-src;
owner = "dasJ";
repo = "spotifywm";
rev = "8624f539549973c124ed18753881045968881745";
hash = "sha256-AsXqcoqUXUFxTG+G+31lm45gjP6qGohEnUSUtKypew0=";
};
buildInputs = [ buildInputs = [libX11];
libX11
];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -35,9 +29,7 @@ in
symlinkJoin { symlinkJoin {
inherit (spotifywm) name; inherit (spotifywm) name;
nativeBuildInputs = [ nativeBuildInputs = [makeBinaryWrapper];
makeBinaryWrapper
];
paths = [ paths = [
spotify spotify

View file

@ -1,4 +1,4 @@
{python3Packages}: {python3Packages, ...}:
python3Packages.buildPythonPackage { python3Packages.buildPythonPackage {
pname = "coloryou"; pname = "coloryou";
version = "0.0.1"; version = "0.0.1";

View file

@ -1,6 +1,6 @@
with import <nixpkgs> {}; with import <nixpkgs> {};
with pkgs.python311Packages; with pkgs.python311Packages;
buildPythonPackage rec { buildPythonPackage {
name = "coloryou"; name = "coloryou";
src = ./.; src = ./.;
propagatedBuildInputs = [material-color-utilities utils]; propagatedBuildInputs = [material-color-utilities utils];

View file

@ -2,10 +2,10 @@
lib, lib,
pkgs, pkgs,
... ...
}: } @ inputs:
with lib; let with lib; let
mkPackage = name: v: { mkPackage = name: v: {
${name} = pkgs.callPackage ./${name} {}; ${name} = pkgs.callPackage ./${name} inputs;
}; };
rmNotPackage = name: value: rmNotPackage = name: value:

View file

@ -1,27 +0,0 @@
{
stdenv,
meson,
ninja,
pkg-config,
cmake,
bash-completion,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "input-emulator";
src = fetchFromGitHub {
owner = "tio";
repo = pname;
rev = "6c35040e6fc4f65ce0519ee76d00d60490bcb987";
hash = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
cmake
bash-completion
];
}

View file

@ -10,17 +10,14 @@
systemd, systemd,
pam, pam,
libpam-wrapper, libpam-wrapper,
fetchFromGitLab, pam-fprint-grosshack-src,
...
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
name = "pam-fprint-grosshack"; name = "pam-fprint-grosshack";
version = pam-fprint-grosshack-src.rev;
src = fetchFromGitLab { src = pam-fprint-grosshack-src;
owner = "mishakmak";
repo = name;
rev = "45b42524fb5783e1e555067743d7e0f70d27888a";
hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
};
nativeBuildInputs = [ nativeBuildInputs = [
meson meson

View file

@ -1,22 +1,19 @@
{ {
stdenv, stdenv,
python3Packages, python3Packages,
fetchFromGitLab, pokemon-colorscripts-src,
...
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "pokemon-colorscripts"; name = "pokemon-colorscripts";
version = pokemon-colorscripts-src.rev;
src = pokemon-colorscripts-src;
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
python python
]; ];
src = fetchFromGitLab {
owner = "phoneybadger";
repo = "pokemon-colorscripts";
rev = "0483c85b93362637bdd0632056ff986c07f30868";
hash = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
};
installPhase = '' installPhase = ''
mkdir -p $out/pokemon-colorscripts $out/bin mkdir -p $out/pokemon-colorscripts $out/bin

View file

@ -3,6 +3,7 @@
coreutils, coreutils,
gnused, gnused,
writeShellScriptBin, writeShellScriptBin,
...
}: let }: let
repl = ./repl.nix; repl = ./repl.nix;
example = command: desc: ''\n\u001b[33m ${command}\u001b[0m - ${desc}''; example = command: desc: ''\n\u001b[33m ${command}\u001b[0m - ${desc}'';

View file

@ -2,13 +2,13 @@
pkgs, pkgs,
config, config,
lib, lib,
gpu-screen-recorder-src,
... ...
}: let }: let
gsr = pkgs.gpu-screen-recorder.overrideAttrs (o: { gsr = pkgs.gpu-screen-recorder.overrideAttrs (o: {
src = pkgs.fetchurl { version = gpu-screen-recorder-src.rev;
url = "https://dec05eba.com/snapshot/gpu-screen-recorder.git.r445.84f9a04.tar.gz";
hash = "sha256-YKGLv7QFBxTZDW9HKS6tEeP1pX91idtuy0oUr4mbjjU="; src = gpu-screen-recorder-src;
};
postPatch = ""; postPatch = "";

View file

@ -3,9 +3,7 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [ imports = [nix-gaming.nixosModules.steamCompat];
nix-gaming.nixosModules.steamCompat
];
programs = { programs = {
steam = { steam = {

View file

@ -20,6 +20,22 @@
"type": "github" "type": "github"
} }
}, },
"bat-theme-src": {
"flake": false,
"locked": {
"lastModified": 1697829826,
"narHash": "sha256-UyZ3WFfrEEBjtdb//5waVItmjKorkOiNGtu9eeB3lOw=",
"owner": "matt1432",
"repo": "bat",
"rev": "270bce892537311ac92494a2a7663e3ecf772092",
"type": "github"
},
"original": {
"owner": "matt1432",
"repo": "bat",
"type": "github"
}
},
"caddy-plugins": { "caddy-plugins": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -264,6 +280,54 @@
"type": "github" "type": "github"
} }
}, },
"git-theme-src": {
"flake": false,
"locked": {
"lastModified": 1672784534,
"narHash": "sha256-3tKjKn5IHIByj+xgi2AIL1vZANlb0vlYJsPjH6BHGxM=",
"owner": "dracula",
"repo": "git",
"rev": "924d5fc32f7ca15d0dd3a8d2cf1747e81e063c73",
"type": "github"
},
"original": {
"owner": "dracula",
"repo": "git",
"type": "github"
}
},
"gpu-screen-recorder-src": {
"flake": false,
"locked": {
"lastModified": 1704038996,
"narHash": "sha256-u1xBU0eq1BbWAKS3p0UH+BKlxOmM6pcKXHwTrjaBMKE=",
"ref": "refs/heads/master",
"rev": "275d4d1b3277b69dbb2942645cda1b92e31ead76",
"revCount": 450,
"type": "git",
"url": "https://repo.dec05eba.com/gpu-screen-recorder"
},
"original": {
"type": "git",
"url": "https://repo.dec05eba.com/gpu-screen-recorder"
}
},
"gtk-theme-src": {
"flake": false,
"locked": {
"lastModified": 1702763567,
"narHash": "sha256-BPL0Msva1/sPQKPeRJHgvU+xXU3m8b2E6aDBLmXbkkA=",
"owner": "dracula",
"repo": "gtk",
"rev": "80d5a3fedf280e9cc7f2df3b100a1082c3bcd1cc",
"type": "github"
},
"original": {
"owner": "dracula",
"repo": "gtk",
"type": "github"
}
},
"headscale": { "headscale": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
@ -314,11 +378,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703838268, "lastModified": 1703995158,
"narHash": "sha256-SRg5nXcdPnrsQR2MTAp7en0NyJnQ2wB1ivmsgEbvN+o=", "narHash": "sha256-oYMwbObpWheGeeNWY1LjO/+omrbAWDNdyzNDxTr2jo8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2aff324cf65f5f98f89d878c056b779466b17db8", "rev": "2e8634c252890cb38c60ab996af04926537cbc27",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -358,11 +422,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1703951941, "lastModified": 1704027264,
"narHash": "sha256-OWWeq3/ENX2Bo3F/OkhG3HFcgcdqJnsapjA3tD7B+fk=", "narHash": "sha256-RzzCNXrSjQAIB4C84/WZ5eYna20d2ZBKhE/PtWK89SM=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "94d6b2d2c12663efe90f6d0410528b0d7bcc671e", "rev": "46997a764304366d772456c20b1c719960927aa7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -402,11 +466,11 @@
"nixpkgs-lib": "nixpkgs-lib_2" "nixpkgs-lib": "nixpkgs-lib_2"
}, },
"locked": { "locked": {
"lastModified": 1703419730, "lastModified": 1704024543,
"narHash": "sha256-ZRqj/irxTzRoGne2eWmuNaSO1/rz22S1EGj+MJXINeo=", "narHash": "sha256-hmKcKSuTqVK47l2G0PkLAinZN1oCOb6XdPPJhNCQ2rg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "lib-aggregate", "repo": "lib-aggregate",
"rev": "7deb8249793fd2e9244c4e652c18d95351eb1111", "rev": "4608880f02f8f868e1b7f85c60abdfc5cb0cf9ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -682,11 +746,11 @@
}, },
"nixpkgs-lib_2": { "nixpkgs-lib_2": {
"locked": { "locked": {
"lastModified": 1703378839, "lastModified": 1703983607,
"narHash": "sha256-wJDrJji9XNMgAsO+Ah34BaraG8bAw9GF7poJQPE0TqU=", "narHash": "sha256-YECXW8P0bqFM5e65Mu2fL4wZlonNWCuNEk7UQPsuJZ0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "9b3a550ca7d42f5ceb3acc13f95dae1a69e6de56", "rev": "a6c99b57d2e58f7fc6d52a08b0ba40160e75f738",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -719,11 +783,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1703989714, "lastModified": 1704046694,
"narHash": "sha256-CnFwl02DcUj4J9BVd8RCg0LzBy0OaRS/sN75JNADwYM=", "narHash": "sha256-8mDyaw+n1gVAzT5O2F/qZCp+i7O8gzDoDHcvv/dIwZU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "d1d5860ae4ff1283f4bca0d7319da06dac54472a", "rev": "39a5058639690de025b5d71c366d7e422763dde7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -898,11 +962,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1703994130, "lastModified": 1704050432,
"narHash": "sha256-yuTGcrmNVHc9f9u6nlYqX4td2TIiLaXei3hIwEqq5tw=", "narHash": "sha256-gPHL0esqZX1ziS2DZpG42vp+/os7kliqNDbmBVRY6l0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "796747b378e54debbca6324327ca33b886f54612", "rev": "e3a2c227b7de1a72acd98028d8c0cb6f3e2cec60",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -929,11 +993,82 @@
"type": "github" "type": "github"
} }
}, },
"pam-fprint-grosshack-src": {
"flake": false,
"locked": {
"lastModified": 1658952526,
"narHash": "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=",
"owner": "mishakmak",
"repo": "pam-fprint-grosshack",
"rev": "45b42524fb5783e1e555067743d7e0f70d27888a",
"type": "gitlab"
},
"original": {
"owner": "mishakmak",
"repo": "pam-fprint-grosshack",
"type": "gitlab"
}
},
"plymouth-src": {
"flake": false,
"locked": {
"host": "gitlab.freedesktop.org",
"lastModified": 1702057553,
"narHash": "sha256-hgQ8nCphR4hc+WTNtS8GgBrC54uYnvTCp7kjgB/u5lE=",
"owner": "plymouth",
"repo": "plymouth",
"rev": "58cc9f84e456ab0510b13d7bdbc13697467ca7be",
"type": "gitlab"
},
"original": {
"host": "gitlab.freedesktop.org",
"owner": "plymouth",
"repo": "plymouth",
"rev": "58cc9f84e456ab0510b13d7bdbc13697467ca7be",
"type": "gitlab"
}
},
"plymouth-theme-src": {
"flake": false,
"locked": {
"lastModified": 1610597442,
"narHash": "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=",
"owner": "dracula",
"repo": "plymouth",
"rev": "37aa09b27ecee4a825b43d2c1d20b502e8f19c96",
"type": "github"
},
"original": {
"owner": "dracula",
"repo": "plymouth",
"type": "github"
}
},
"pokemon-colorscripts-src": {
"flake": false,
"locked": {
"lastModified": 1666991310,
"narHash": "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=",
"owner": "phoneybadger",
"repo": "pokemon-colorscripts",
"rev": "0483c85b93362637bdd0632056ff986c07f30868",
"type": "gitlab"
},
"original": {
"owner": "phoneybadger",
"repo": "pokemon-colorscripts",
"type": "gitlab"
}
},
"root": { "root": {
"inputs": { "inputs": {
"ags": "ags", "ags": "ags",
"bat-theme-src": "bat-theme-src",
"caddy-plugins": "caddy-plugins", "caddy-plugins": "caddy-plugins",
"coc-stylelintplus-flake": "coc-stylelintplus-flake", "coc-stylelintplus-flake": "coc-stylelintplus-flake",
"git-theme-src": "git-theme-src",
"gpu-screen-recorder-src": "gpu-screen-recorder-src",
"gtk-theme-src": "gtk-theme-src",
"headscale": "headscale", "headscale": "headscale",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprgrass": "hyprgrass", "hyprgrass": "hyprgrass",
@ -949,8 +1084,15 @@
"nms": "nms", "nms": "nms",
"nur": "nur", "nur": "nur",
"nurl": "nurl", "nurl": "nurl",
"pam-fprint-grosshack-src": "pam-fprint-grosshack-src",
"plymouth-src": "plymouth-src",
"plymouth-theme-src": "plymouth-theme-src",
"pokemon-colorscripts-src": "pokemon-colorscripts-src",
"secrets": "secrets", "secrets": "secrets",
"tree-sitter-hypr-flake": "tree-sitter-hypr-flake" "spotifywm-src": "spotifywm-src",
"trash-d-src": "trash-d-src",
"tree-sitter-hypr-flake": "tree-sitter-hypr-flake",
"xresources-theme-src": "xresources-theme-src"
} }
}, },
"secrets": { "secrets": {
@ -996,6 +1138,22 @@
"type": "github" "type": "github"
} }
}, },
"spotifywm-src": {
"flake": false,
"locked": {
"lastModified": 1666732863,
"narHash": "sha256-AsXqcoqUXUFxTG+G+31lm45gjP6qGohEnUSUtKypew0=",
"owner": "dasJ",
"repo": "spotifywm",
"rev": "8624f539549973c124ed18753881045968881745",
"type": "github"
},
"original": {
"owner": "dasJ",
"repo": "spotifywm",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@ -1086,6 +1244,22 @@
"type": "github" "type": "github"
} }
}, },
"trash-d-src": {
"flake": false,
"locked": {
"lastModified": 1692895205,
"narHash": "sha256-oPxeoEqOYf6DCg5rJxINqAIlMbxqzAJcZDUY/EzADzY=",
"owner": "rushsteve1",
"repo": "trash-d",
"rev": "d88bb672612761c8e299e717857bf9c85a903e99",
"type": "github"
},
"original": {
"owner": "rushsteve1",
"repo": "trash-d",
"type": "github"
}
},
"tree-sitter-hypr-flake": { "tree-sitter-hypr-flake": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_5", "flake-utils": "flake-utils_5",
@ -1176,6 +1350,22 @@
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"type": "github" "type": "github"
} }
},
"xresources-theme-src": {
"flake": false,
"locked": {
"lastModified": 1647833631,
"narHash": "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY=",
"owner": "dracula",
"repo": "xresources",
"rev": "539ef24e9b0c5498a82d59bfa2bad9b618d832a3",
"type": "github"
},
"original": {
"owner": "dracula",
"repo": "xresources",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

231
flake.nix
View file

@ -86,79 +86,248 @@
}; };
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Main inputs
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets = { secrets = {
url = "git+ssh://git@git.nelim.org/matt1432/nixos-secrets"; type = "git";
url = "ssh://git@git.nelim.org/matt1432/nixos-secrets";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-on-droid = { nix-on-droid = {
url = "github:t184256/nix-on-droid"; type = "github";
inputs.nixpkgs.follows = "nixpkgs"; owner = "t184256";
inputs.home-manager.follows = "home-manager"; repo = "nix-on-droid";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
}; };
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland"; # Overlays
nur.url = "github:nix-community/NUR"; nixpkgs-wayland = {
type = "github";
nix-gaming.url = "github:fufexan/nix-gaming"; owner = "nix-community";
repo = "nixpkgs-wayland";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
}; };
# Oksys flakes nur = {
type = "github";
owner = "nix-community";
repo = "NUR";
};
nix-gaming = {
type = "github";
owner = "fufexan";
repo = "nix-gaming";
};
# Oksys inputs
headscale = { headscale = {
url = "github:juanfont/headscale"; type = "github";
owner = "juanfont";
repo = "headscale";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
caddy-plugins = { caddy-plugins = {
url = "github:matt1432/nixos-caddy-cloudflare"; type = "github";
owner = "matt1432";
repo = "nixos-caddy-cloudflare";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Servivi inputs
nms = { nms = {
url = "github:matt1432/nixos-minecraft-servers"; type = "github";
owner = "matt1432";
repo = "nixos-minecraft-servers";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Desktop inputs
hyprland = { hyprland = {
url = "github:hyprwm/Hyprland"; type = "github";
owner = "hyprwm";
repo = "Hyprland";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprgrass = { hyprgrass = {
url = "github:horriblename/hyprgrass"; type = "github";
owner = "horriblename";
repo = "hyprgrass";
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";
}; };
ags = { ags = {
url = "github:Aylur/ags"; type = "github";
owner = "Aylur";
repo = "ags";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Neovim inputs
neovim-flake = { neovim-flake = {
url = "github:nix-community/neovim-nightly-overlay"; type = "github";
owner = "nix-community";
repo = "neovim-nightly-overlay";
# to make sure plugins and nvim have same binaries # to make sure plugins and nvim have same binaries
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
coc-stylelintplus-flake = { coc-stylelintplus-flake = {
url = "github:matt1432/coc-stylelintplus"; type = "github";
inputs.nixpkgs.follows = "nixpkgs"; owner = "matt1432";
}; repo = "coc-stylelintplus";
tree-sitter-hypr-flake = {
url = "github:luckasRanarison/tree-sitter-hypr";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# FIXME: some of these prevent from using nixos-install tree-sitter-hypr-flake = {
nh.url = "github:viperML/nh"; type = "github";
nix-melt.url = "github:nix-community/nix-melt"; owner = "luckasRanarison";
nurl.url = "github:nix-community/nurl"; repo = "tree-sitter-hypr";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix tools
nurl = {
type = "github";
owner = "nix-community";
repo = "nurl";
};
nix-index-db = { nix-index-db = {
url = "github:Mic92/nix-index-database"; type = "github";
owner = "Mic92";
repo = "nix-index-database";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# FIXME: these prevent from using nixos-install
nh = {
type = "github";
owner = "viperML";
repo = "nh";
};
nix-melt = {
type = "github";
owner = "nix-community";
repo = "nix-melt";
};
# -= Non-flake inputs =-
## Custom packages
trash-d-src = {
type = "github";
owner = "rushsteve1";
repo = "trash-d";
flake = false;
};
pam-fprint-grosshack-src = {
type = "gitlab";
owner = "mishakmak";
repo = "pam-fprint-grosshack";
flake = false;
};
pokemon-colorscripts-src = {
type = "gitlab";
owner = "phoneybadger";
repo = "pokemon-colorscripts";
flake = false;
};
## Overlays
plymouth-src = {
type = "gitlab";
host = "gitlab.freedesktop.org";
owner = "plymouth";
repo = "plymouth";
# https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/236
# Last commit that works
rev = "58cc9f84e456ab0510b13d7bdbc13697467ca7be";
flake = false;
};
spotifywm-src = {
type = "github";
owner = "dasJ";
repo = "spotifywm";
flake = false;
};
gpu-screen-recorder-src = {
type = "git";
url = "https://repo.dec05eba.com/gpu-screen-recorder";
flake = false;
};
## Dracula src
bat-theme-src = {
type = "github";
owner = "matt1432";
repo = "bat";
flake = false;
};
git-theme-src = {
type = "github";
owner = "dracula";
repo = "git";
flake = false;
};
gtk-theme-src = {
type = "github";
owner = "dracula";
repo = "gtk";
flake = false;
};
plymouth-theme-src = {
type = "github";
owner = "dracula";
repo = "plymouth";
flake = false;
};
xresources-theme-src = {
type = "github";
owner = "dracula";
repo = "xresources";
flake = false;
};
}; };
} }

View file

@ -46,7 +46,7 @@
xresources.extraConfig = xresources.extraConfig =
builtins.readFile builtins.readFile
"${pkgs.dracula-theme}/xres/Xresources"; "${pkgs.dracula-theme}/xres";
xdg.configFile = let xdg.configFile = let
qtconf = '' qtconf = ''

View file

@ -1,7 +1,5 @@
{nix-gaming, ...}: { {nix-gaming, ...}: {
imports = [ imports = [nix-gaming.nixosModules.pipewireLowLatency];
nix-gaming.nixosModules.pipewireLowLatency
];
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;

View file

@ -21,29 +21,6 @@ parseFetchurl() {
sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE" sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE"
} }
updateOverlays() {
FILE="/home/matt/.nix/common/overlays"
parseNurl "https://github.com/dasJ/spotifywm" "$FILE/spotifywm/spotifywm.nix"
}
updateDracula() {
FILE="/home/matt/.nix/common/overlays/dracula-theme"
parseNurl "https://github.com/matt1432/bat" "$FILE/bat.nix"
parseNurl "https://github.com/dracula/gtk" "$FILE/default.nix"
parseNurl "https://github.com/dracula/plymouth" "$FILE/plymouth.nix"
parseNurl "https://github.com/dracula/git" "$FILE/git.nix"
parseNurl "https://github.com/dracula/xresources" "$FILE/xresources.nix"
parseFetchurl "https://github.com/aynp/dracula-wallpapers/blob/main/Art/4k/Waves%201.png?raw=true" "$FILE/wallpaper.nix"
}
updateCustomPkgs() {
FILE="/home/matt/.nix/common/pkgs"
parseNurl "https://github.com/tio/input-emulator" "$FILE/input-emulator/default.nix"
parseNurl "https://gitlab.com/mishakmak/pam-fprint-grosshack" "$FILE/pam-fprint-grosshack/default.nix"
parseNurl "https://gitlab.com/phoneybadger/pokemon-colorscripts" "$FILE/pokemon-colorscripts/default.nix"
}
updateFFZ() { updateFFZ() {
FILE="/home/matt/.nix/home/firefox/addons/default.nix" FILE="/home/matt/.nix/home/firefox/addons/default.nix"
URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi" URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi"
@ -70,43 +47,15 @@ updateFirefoxAddons() {
mozilla-addons-to-nix addons.json generated-firefox-addons.nix) mozilla-addons-to-nix addons.json generated-firefox-addons.nix)
} }
updateGSR() {
(
cd /tmp || return
if [[ ! -d "gpu-screen-recorder" ]]; then
git clone https://repo.dec05eba.com/gpu-screen-recorder
cd gpu-screen-recorder || return
else
cd gpu-screen-recorder || return
git pull
fi
REV=$(printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
URL=https://dec05eba.com/snapshot/gpu-screen-recorder.git."$REV".tar.gz
FILE="/home/matt/.nix/devices/binto/modules/gpu-replay.nix"
parseFetchurl "$URL" "$FILE"
)
}
doAll() { doAll() {
updateFFZ updateFFZ
updateCustomPkgs
updateOverlays
updateDracula
updateFirefoxAddons updateFirefoxAddons
updateGSR
} }
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll [[ "$1" == "-a" || "$1" == "--all" ]] && doAll
[[ "$1" == "-d" || "$1" == "--dracula" ]] && updateDracula
[[ "$1" == "-c" || "$1" == "--custom" ]] && updateCustomPkgs
[[ "$1" == "-o" || "$1" == "--overlays" ]] && updateOverlays
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons [[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
[[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ [[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ
[[ "$1" == "-gsr" || "$1" == "--gpu-screen-recorder" ]] && updateGSR
alejandra /home/matt/.nix alejandra /home/matt/.nix