move more stuff to shared module
This commit is contained in:
parent
5cf1b9254e
commit
407dbcbfcd
13
cachix.nix
13
cachix.nix
@ -1,13 +0,0 @@
|
|||||||
|
|
||||||
# WARN: this file will get overwritten by $ cachix use <name>
|
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
folder = ./cachix;
|
|
||||||
toImport = name: value: folder + ("/" + name);
|
|
||||||
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
|
|
||||||
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
|
||||||
in {
|
|
||||||
inherit imports;
|
|
||||||
nix.settings.substituters = ["https://cache.nixos.org/"];
|
|
||||||
}
|
|
@ -41,6 +41,7 @@
|
|||||||
};
|
};
|
||||||
sound = true;
|
sound = true;
|
||||||
graphical = true;
|
graphical = true;
|
||||||
|
gaming = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
age.identityPaths = [ "/home/grimmauld/.ssh/id_rsa" ];
|
age.identityPaths = [ "/home/grimmauld/.ssh/id_rsa" ];
|
||||||
|
32
flake.lock
32
flake.lock
@ -78,11 +78,11 @@
|
|||||||
"yafas": "yafas"
|
"yafas": "yafas"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710512612,
|
"lastModified": 1710608887,
|
||||||
"narHash": "sha256-XMyG8ceRZ3aIqSJy/XlJHzkOaNCudldWq8Zrn2NfgcA=",
|
"narHash": "sha256-zE3+gYT+JpbxA/SBlc8GQ0OBYWwtX0++WpZxEIXUebs=",
|
||||||
"owner": "chaotic-cx",
|
"owner": "chaotic-cx",
|
||||||
"repo": "nyx",
|
"repo": "nyx",
|
||||||
"rev": "4417bbe33cb131959a9635815faa092c0934b36b",
|
"rev": "73e16a06baf8a9bb273a131b10b142f620c2b610",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -138,11 +138,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710090208,
|
"lastModified": 1710562188,
|
||||||
"narHash": "sha256-1W7yDW+kqCr/9SygZwygBayE8HwLnzJq48fMAOZQLAY=",
|
"narHash": "sha256-KHlb4sK9fvp+9DoYWHLyaegoeLV7w8s7CsNMmNlKu1U=",
|
||||||
"owner": "girlbossceo",
|
"owner": "girlbossceo",
|
||||||
"repo": "conduwuit",
|
"repo": "conduwuit",
|
||||||
"rev": "e888a0a745ac979abe6a687ff24b8c5e7b7b79ed",
|
"rev": "8d8467a4eafd264adb9c710e0638c08ae547dec4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -389,11 +389,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710484139,
|
"lastModified": 1710563757,
|
||||||
"narHash": "sha256-vOm70QgvfjHNQa9vmpxPsm1xE4PTmqtkDpe22/ra5cw=",
|
"narHash": "sha256-H5SZIo7O4zg/NqSdM71V2gYH4ex5WbBf6s9ue5s4nL4=",
|
||||||
"owner": "martinvonz",
|
"owner": "martinvonz",
|
||||||
"repo": "jj",
|
"repo": "jj",
|
||||||
"rev": "3bb9fd412ac7f021a2fa09503fdec93ac066d7b7",
|
"rev": "8600750fceafbf489d42a99b36b1f48bbc1e416b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -426,11 +426,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710494976,
|
"lastModified": 1710525749,
|
||||||
"narHash": "sha256-WDuSPzeKecrolclXHmPk44Ch28+DQXHqYFOJkHSWFgM=",
|
"narHash": "sha256-LpV/mJLeShTPecVQZnIAb9PTCGziuMuGOJQUeAb2u/w=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "642c6e7512f25f1fdc47dfa6a6eaec38c5faa69b",
|
"rev": "0c57815fbf47c69af9ed11fa8ebc1b52158a3ba2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -613,11 +613,11 @@
|
|||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710609877,
|
"lastModified": 1710623910,
|
||||||
"narHash": "sha256-lKxTaTTFxsIiv4Z4X3dMIaCtCHS6pxdvEy5EASIIRKA=",
|
"narHash": "sha256-8ccfg6Q+6RbLSwK90D6APl4BItz96+AyEa6FV8S6nbY=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "5e620c121570b823d8b8d6c191c48d8016cd92b3",
|
"rev": "ed422e82654443ba6bce726e60e426c2ffd4b37a",
|
||||||
"revCount": 25,
|
"revCount": 27,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.grimmauld.de/Grimmauld/grimm-nix-shared"
|
"url": "https://git.grimmauld.de/Grimmauld/grimm-nix-shared"
|
||||||
},
|
},
|
||||||
|
@ -8,15 +8,6 @@
|
|||||||
|
|
||||||
kdePackages.audiocd-kio
|
kdePackages.audiocd-kio
|
||||||
|
|
||||||
(writeShellScriptBin "primerun" ''
|
|
||||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
|
||||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
|
||||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
|
||||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
|
||||||
export DRI_PRIME=1
|
|
||||||
exec "$@"
|
|
||||||
'')
|
|
||||||
|
|
||||||
(writeShellScriptBin "rebuild" ''
|
(writeShellScriptBin "rebuild" ''
|
||||||
pkexec nixos-rebuild switch --flake /home/grimmauld/grimm-nixos-laptop
|
pkexec nixos-rebuild switch --flake /home/grimmauld/grimm-nixos-laptop
|
||||||
'')
|
'')
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
systemd.services.otd-daemon = {
|
|
||||||
description = "opentabletdriver daemon, a user service to make the gui work";
|
|
||||||
after = [ "graphical-session.target" ];
|
|
||||||
wantedBy = [ "xdg-desktop-autostart.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${pkgs.opentabletdriver}/bin/otd-daemon";
|
|
||||||
Type = "simple";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
opentabletdriver
|
opentabletdriver
|
||||||
];
|
];
|
||||||
|
@ -20,14 +20,4 @@
|
|||||||
RUNTIME_PM_ON_BAT="auto";
|
RUNTIME_PM_ON_BAT="auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.gamemode = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
general.inhibit_screensaver=0;
|
|
||||||
custom = {
|
|
||||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
|
||||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,14 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.xonsh;
|
shell = pkgs.xonsh;
|
||||||
description = "grimmauld";
|
description = "grimmauld";
|
||||||
extraGroups = [ "networkmanager" "wheel" "input" "video" "lp" "scanner" "libvirtd" "pipewire" ];
|
extraGroups = [ "networkmanager" "wheel" "input" "video" "lp" "scanner" "libvirtd" "pipewire" "gamemode" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
webcord
|
webcord
|
||||||
discord
|
discord
|
||||||
heroic
|
|
||||||
plasma-browser-integration
|
plasma-browser-integration
|
||||||
kwrited
|
kwrited
|
||||||
element-desktop
|
element-desktop
|
||||||
ghidra
|
ghidra
|
||||||
# firefox
|
|
||||||
kcalc
|
kcalc
|
||||||
rmview
|
rmview
|
||||||
krita
|
krita
|
||||||
@ -21,20 +19,7 @@
|
|||||||
prusa-slicer
|
prusa-slicer
|
||||||
freecad
|
freecad
|
||||||
openscad
|
openscad
|
||||||
prismlauncher
|
|
||||||
# blender
|
# blender
|
||||||
wootility
|
|
||||||
# (callPackage ./theseus-modrinth.nix {})
|
|
||||||
# osu-lazer-bin
|
|
||||||
(pkgs.symlinkJoin {
|
|
||||||
name = "osu";
|
|
||||||
paths = [
|
|
||||||
(pkgs.writeShellScriptBin "osu!" ''
|
|
||||||
exec nice -n -19 gamemoderun primerun ${pkgs.osu-lazer-bin}/bin/'osu!'
|
|
||||||
'')
|
|
||||||
pkgs.osu-lazer-bin
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -44,12 +29,4 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts.packages = with pkgs; [ passff-host ];
|
nativeMessagingHosts.packages = with pkgs; [ passff-host ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
gamescopeSession.env = { DRI_PRIME = "1"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
|
||||||
}
|
}
|
||||||
|
15
overlay.nix
15
overlay.nix
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: final: prev:
|
|
||||||
{
|
|
||||||
# stable packages
|
|
||||||
stable = import inputs.nixpkgs-stable {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# SwayFX
|
|
||||||
sway-unwrapped = inputs.swayfx.packages.${system}.default;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user