This commit is contained in:
caandt 2024-11-03 20:23:34 -06:00
parent eaf7bb7492
commit 4f55e2393b
4 changed files with 113 additions and 4 deletions

View file

@ -1,5 +1,23 @@
{ {
"nodes": { "nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-programs-sqlite": { "flake-programs-sqlite": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -41,6 +59,28 @@
"type": "github" "type": "github"
} }
}, },
"nix-gaming": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
],
"umu": "umu"
},
"locked": {
"lastModified": 1730425644,
"narHash": "sha256-dfxO6mkn1KkotGQXV93m/2MoS9ayLUwaIIbR3mReLd0=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "bcc7c896b56ccd644ca2daea74dac05c1731f59d",
"type": "github"
},
"original": {
"owner": "fufexan",
"repo": "nix-gaming",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1729665710, "lastModified": 1729665710,
@ -57,6 +97,18 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": {
"locked": {
"lastModified": 1727825735,
"narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
}
},
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1729691686, "lastModified": 1729691686,
@ -77,10 +129,36 @@
"inputs": { "inputs": {
"flake-programs-sqlite": "flake-programs-sqlite", "flake-programs-sqlite": "flake-programs-sqlite",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
} }
}, },
"umu": {
"inputs": {
"nixpkgs": [
"nix-gaming",
"nixpkgs"
]
},
"locked": {
"dir": "packaging/nix",
"lastModified": 1729978972,
"narHash": "sha256-Zox0iAi4CRPn4rxrhOetFFZ2jcSipe8tGD8nMTgcjhE=",
"ref": "refs/heads/main",
"rev": "72499f349ca81cb2838eced9d7c465b2cf71c4a2",
"revCount": 825,
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
},
"original": {
"dir": "packaging/nix",
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
}
},
"utils": { "utils": {
"locked": { "locked": {
"lastModified": 1678901627, "lastModified": 1678901627,

View file

@ -12,6 +12,10 @@
url = "github:wamserma/flake-programs-sqlite"; url = "github:wamserma/flake-programs-sqlite";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@ -50,6 +54,7 @@
inherit pkgs; inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = {
inherit pkgs-stable; inherit pkgs-stable;
inherit (inputs) nix-gaming;
}; };
modules = [(users + "/${user}")]; modules = [(users + "/${user}")];
}; };

View file

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
../../system ../../system
./hardware-configuration.nix ./hardware-configuration.nix
@ -10,9 +10,19 @@
videoDrivers = ["amdgpu"]; videoDrivers = ["amdgpu"];
deviceSection = ''Option "TearFree" "true"''; deviceSection = ''Option "TearFree" "true"'';
}; };
users.users.ahnwuoa = { users.users = {
isNormalUser = true; ahnwuoa = {
extraGroups = ["wheel" "podman"]; isNormalUser = true;
extraGroups = ["wheel" "podman"];
};
u2h = {
isNormalUser = true;
};
}; };
services.udev.packages = [pkgs.opentabletdriver];
services.xserver.wacom.enable = true; services.xserver.wacom.enable = true;
nix.settings = {
substituters = ["https://nix-gaming.cachix.org"];
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
};
} }

View file

@ -0,0 +1,16 @@
{
config,
pkgs,
nix-gaming,
...
}: {
imports = [
../../../../user
];
home.username = "u2h";
home.packages = [
pkgs.opentabletdriver
nix-gaming.packages."x86_64-linux".osu-stable
];
}