Compare commits
4 commits
779524d4be
...
535e7e6cc3
Author | SHA1 | Date | |
---|---|---|---|
Natsu Kagami | 535e7e6cc3 | ||
Natsu Kagami | ee23caba62 | ||
Natsu Kagami | f9ed1848a2 | ||
Natsu Kagami | b300f43060 |
106
flake.lock
106
flake.lock
|
@ -173,11 +173,11 @@
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694382265,
|
"lastModified": 1695850660,
|
||||||
"narHash": "sha256-bHM6/6GYzY/seA0YaSSN4opvoIqfWsfRKmdS6tMsh6A=",
|
"narHash": "sha256-KimiTIK2RjLo3zGH+5CEtI8ZY2XGQYGM/u74v2YD2kw=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "c9ffcdf53555f2e796a26dd2c8c8174957b55020",
|
"rev": "9d813802a9bffeb08ba92172ebb9eddb216319b6",
|
||||||
"revCount": 1635,
|
"revCount": 1717,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@git.dtth.ch/nki/phanpy"
|
"url": "ssh://gitea@git.dtth.ch/nki/phanpy"
|
||||||
},
|
},
|
||||||
|
@ -410,6 +410,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_5": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1693611461,
|
||||||
|
"narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
|
@ -839,6 +857,25 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-gaming": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts_5",
|
||||||
|
"nixpkgs": "nixpkgs_9"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1695063925,
|
||||||
|
"narHash": "sha256-uJEBdoWy+ixiZytrcw2lZf5aXcL7RL5pgMuVb+v/nfg=",
|
||||||
|
"owner": "fufexan",
|
||||||
|
"repo": "nix-gaming",
|
||||||
|
"rev": "68d010acc841d9b19fc9fce184acc935cc086ee4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "fufexan",
|
||||||
|
"repo": "nix-gaming",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-m1": {
|
"nixos-m1": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_5",
|
"flake-compat": "flake-compat_5",
|
||||||
|
@ -895,6 +932,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib_2": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "lib",
|
||||||
|
"lastModified": 1693471703,
|
||||||
|
"narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "lib",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1678872516,
|
"lastModified": 1678872516,
|
||||||
|
@ -913,11 +968,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694760568,
|
"lastModified": 1695806987,
|
||||||
"narHash": "sha256-3G07BiXrp2YQKxdcdms22MUx6spc6A++MSePtatCYuI=",
|
"narHash": "sha256-fX5kGs66NZIxCMcpAGIpxuftajHL8Hil1vjHmjjl118=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "46688f8eb5cd6f1298d873d4d2b9cf245e09e88e",
|
"rev": "f3dab3509afca932f3f4fd0908957709bb1c1f57",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -928,6 +983,22 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_10": {
|
"nixpkgs_10": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1695559356,
|
||||||
|
"narHash": "sha256-kXZ1pUoImD9OEbPCwpTz4tHsNTr4CIyIfXb3ocuR8sI=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "261abe8a44a7e8392598d038d2e01f7b33cf26d0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-23.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_11": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1656753965,
|
"lastModified": 1656753965,
|
||||||
"narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
|
"narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
|
||||||
|
@ -943,7 +1014,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_11": {
|
"nixpkgs_12": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685533922,
|
"lastModified": 1685533922,
|
||||||
"narHash": "sha256-y4FCQpYafMQ42l1V+NUrMel9RtFtZo59PzdzflKR/lo=",
|
"narHash": "sha256-y4FCQpYafMQ42l1V+NUrMel9RtFtZo59PzdzflKR/lo=",
|
||||||
|
@ -1070,16 +1141,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_9": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694753796,
|
"lastModified": 1694760568,
|
||||||
"narHash": "sha256-QPE7dqcicQH/nq9aywVXJWWtci4FvxHaM+BSIEbGBvA=",
|
"narHash": "sha256-3G07BiXrp2YQKxdcdms22MUx6spc6A++MSePtatCYuI=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "360a7d31c30abefdc490d203f80e3221b7a24af2",
|
"rev": "46688f8eb5cd6f1298d873d4d2b9cf245e09e88e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-23.05",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -1133,7 +1204,7 @@
|
||||||
"rnix-lsp": {
|
"rnix-lsp": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"naersk": "naersk_2",
|
"naersk": "naersk_2",
|
||||||
"nixpkgs": "nixpkgs_10",
|
"nixpkgs": "nixpkgs_11",
|
||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -1165,8 +1236,9 @@
|
||||||
"kakoune": "kakoune",
|
"kakoune": "kakoune",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"mpd-mpris": "mpd-mpris",
|
"mpd-mpris": "mpd-mpris",
|
||||||
|
"nix-gaming": "nix-gaming",
|
||||||
"nixos-m1": "nixos-m1",
|
"nixos-m1": "nixos-m1",
|
||||||
"nixpkgs": "nixpkgs_9",
|
"nixpkgs": "nixpkgs_10",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"rnix-lsp": "rnix-lsp",
|
"rnix-lsp": "rnix-lsp",
|
||||||
|
@ -1524,7 +1596,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_10",
|
"flake-utils": "flake-utils_10",
|
||||||
"naersk": "naersk_3",
|
"naersk": "naersk_3",
|
||||||
"nixpkgs": "nixpkgs_11"
|
"nixpkgs": "nixpkgs_12"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1694957290,
|
"lastModified": 1694957290,
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -44,6 +44,7 @@
|
||||||
};
|
};
|
||||||
eza.url = github:eza-community/eza/v0.12.0;
|
eza.url = github:eza-community/eza/v0.12.0;
|
||||||
eza.inputs.nixpkgs.follows = "nixpkgs";
|
eza.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
nix-gaming.url = github:fufexan/nix-gaming;
|
||||||
|
|
||||||
# --- Sources
|
# --- Sources
|
||||||
kakoune.url = github:mawww/kakoune;
|
kakoune.url = github:mawww/kakoune;
|
||||||
|
@ -88,6 +89,14 @@
|
||||||
};
|
};
|
||||||
nixpkgsAsRegistry = nixpkgsAsRegistry_ nixpkgs;
|
nixpkgsAsRegistry = nixpkgsAsRegistry_ nixpkgs;
|
||||||
|
|
||||||
|
osuStable = { pkgs, ... }: {
|
||||||
|
nix.settings = {
|
||||||
|
substituters = [ "https://nix-gaming.cachix.org" ];
|
||||||
|
trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ];
|
||||||
|
};
|
||||||
|
environment.systemPackages = [ inputs.nix-gaming.packages.${pkgs.hostPlatform.system}.osu-stable ];
|
||||||
|
};
|
||||||
|
|
||||||
# Common Nix modules
|
# Common Nix modules
|
||||||
common-nix = stable: { ... }: {
|
common-nix = stable: { ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -133,6 +142,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
(common-nixos nixpkgs)
|
(common-nixos nixpkgs)
|
||||||
./nki-home/configuration.nix
|
./nki-home/configuration.nix
|
||||||
|
osuStable
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|
42
home/osu.nix
42
home/osu.nix
|
@ -1,29 +1,31 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
osu-pkg = with pkgs; with lib;
|
osu-pkg = pkgs.unstable.osu-lazer-bin;
|
||||||
appimageTools.wrapType2 rec {
|
# with pkgs; with lib;
|
||||||
pname = "osu-lazer-bin";
|
# appimageTools.wrapType2 rec {
|
||||||
version = "2023.123.0";
|
# pname = "osu-lazer-bin";
|
||||||
|
# version = "2023.914.0";
|
||||||
|
|
||||||
src = fetchurl {
|
# src = fetchurl {
|
||||||
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
# url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
||||||
sha256 = "sha256-edu93pvTEM5/s0kW55U1xfYGDl0eUpGXypvuYIwsM3w=";
|
# # sha256 = "sha256-edu93pvTEM5/s0kW55U1xfYGDl0eUpGXypvuYIwsM3w=";
|
||||||
};
|
# hash = lib.fakeHash;
|
||||||
|
# };
|
||||||
|
|
||||||
extraPkgs = pkgs: with pkgs; [ icu ];
|
# extraPkgs = pkgs: with pkgs; [ icu ];
|
||||||
|
|
||||||
extraInstallCommands =
|
# extraInstallCommands =
|
||||||
let contents = appimageTools.extract { inherit pname version src; };
|
# let contents = appimageTools.extract { inherit pname version src; };
|
||||||
in
|
# in
|
||||||
''
|
# ''
|
||||||
mv -v $out/bin/${pname}-${version} $out/bin/osu\!
|
# mv -v $out/bin/${pname}-${version} $out/bin/osu\!
|
||||||
install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
|
# install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
|
||||||
for i in 16 32 48 64 96 128 256 512 1024; do
|
# for i in 16 32 48 64 96 128 256 512 1024; do
|
||||||
install -D ${contents}/osu\!.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png
|
# install -D ${contents}/osu\!.png $out/share/icons/hicolor/''${i}x$i/apps/osu\!.png
|
||||||
done
|
# done
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ osu-pkg ];
|
home.packages = [ osu-pkg ];
|
||||||
|
|
Loading…
Reference in a new issue