tidied core/ and core/modules/
This commit is contained in:
parent
0d15bfd67f
commit
4482e2fdd6
9 changed files with 96 additions and 139 deletions
|
|
@ -8,7 +8,8 @@
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
||||||
## Semi-modularised config
|
## Semi-modularised config
|
||||||
./packages.nix # system-level packages here - needs tidying
|
./packages.nix # system-level packages - needs tidying
|
||||||
|
./modules # additional modules to import
|
||||||
../home/users # user-level packages in ../home/programs/
|
../home/users # user-level packages in ../home/programs/
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
@ -52,12 +53,8 @@
|
||||||
download-buffer-size = [ "268435456" ];
|
download-buffer-size = [ "268435456" ];
|
||||||
allowed-users = [ "@wheel" ];
|
allowed-users = [ "@wheel" ];
|
||||||
## Enable flakes uwu
|
## Enable flakes uwu
|
||||||
experimental-features = [
|
experimental-features =
|
||||||
"pipe-operators"
|
[ "pipe-operators" "recursive-nix" "nix-command" "flakes" ];
|
||||||
"recursive-nix"
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gc = {
|
gc = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
## https://nixos.wiki/wiki/Category:Audio
|
# # https://nixos.wiki/wiki/Category:Audio
|
||||||
## https://nixos.wiki/PipeWire
|
## https://nixos.wiki/PipeWire
|
||||||
## https://github.com/musnix/musnix
|
## https://github.com/musnix/musnix
|
||||||
## https://nixos.wiki/wiki/Audio_production
|
## https://nixos.wiki/wiki/Audio_production
|
||||||
|
|
@ -53,15 +53,9 @@
|
||||||
## Musnix for audio production
|
## Musnix for audio production
|
||||||
musnix = {
|
musnix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rtcqs = {
|
rtcqs = { enable = true; };
|
||||||
enable = true;
|
rtirq = { enable = true; };
|
||||||
};
|
kernel = { realtime = true; };
|
||||||
rtirq = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
kernel = {
|
|
||||||
realtime = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
## Using pipewire baybee
|
## Using pipewire baybee
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,9 @@
|
||||||
imports = [
|
imports = [
|
||||||
|
|
||||||
## Semi-modularised config
|
## Semi-modularised config
|
||||||
./jellyfin.nix # unfinished
|
./misc.nix # stuff that doesn't work in `/home` :(
|
||||||
./regreet.nix # unfinished
|
./audio.nix # musnix and ... audio ... config
|
||||||
./misc.nix # stuff that doesn't work in home-manager :(
|
|
||||||
./display.nix # declarations for display management
|
./display.nix # declarations for display management
|
||||||
./gaming.nix # for gaming stuff, ideally would be in home/
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
## planning to have a discrete config file for
|
./regreet.nix # the greeter(s) to keep this file tidy.
|
||||||
## the greeter(s) to keep this file tidy.
|
|
||||||
./regreet.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
|
@ -46,12 +44,10 @@
|
||||||
#font = "${pkgs.spleen}/share/fonts/spleen-32x64";
|
#font = "${pkgs.spleen}/share/fonts/spleen-32x64";
|
||||||
|
|
||||||
theme = "circuit";
|
theme = "circuit";
|
||||||
themePackages = with pkgs; [
|
themePackages = with pkgs;
|
||||||
|
[
|
||||||
(adi1090x-plymouth-themes.override {
|
(adi1090x-plymouth-themes.override {
|
||||||
selected_themes = [
|
selected_themes = [ "circle" "circuit" ];
|
||||||
"circle"
|
|
||||||
"circuit"
|
|
||||||
];
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -158,12 +154,10 @@
|
||||||
## I put fonts here because i didn't know where tf else to put them lol
|
## I put fonts here because i didn't know where tf else to put them lol
|
||||||
## duplicate to home-manager config
|
## duplicate to home-manager config
|
||||||
fonts = {
|
fonts = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs;
|
||||||
spleen
|
[ spleen terminus_font terminus_font_ttf nerd-fonts.symbols-only ]
|
||||||
terminus_font
|
++ builtins.filter lib.attrsets.isDerivation
|
||||||
terminus_font_ttf
|
(builtins.attrValues pkgs.nerd-fonts);
|
||||||
nerd-fonts.symbols-only
|
|
||||||
] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
defaultFonts = {
|
defaultFonts = {
|
||||||
|
|
@ -174,6 +168,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,7 @@
|
||||||
## Open tablet driver, for Osu!, mainly.
|
## Open tablet driver, for Osu!, mainly.
|
||||||
enable = true;
|
enable = true;
|
||||||
## Disable conflicting drivers
|
## Disable conflicting drivers
|
||||||
blacklistedKernelModules = [
|
blacklistedKernelModules = [ "hid-uclogic" "wacom" ];
|
||||||
"hid-uclogic"
|
|
||||||
"wacom"
|
|
||||||
];
|
|
||||||
## Enables the daemon via systemd
|
## Enables the daemon via systemd
|
||||||
daemon.enable = true;
|
daemon.enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -35,7 +32,8 @@
|
||||||
XDG_BIN_HOME = "$HOME/.local/bin";
|
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||||
XDG_DATA_HOME = "$HOME/.local/share";
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
## Steam needs this to find Proton-GE
|
## Steam needs this to find Proton-GE
|
||||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS =
|
||||||
|
"\${HOME}/.steam/root/compatibilitytools.d";
|
||||||
## Note: this doesn't replace PATH, it just adds this to it
|
## Note: this doesn't replace PATH, it just adds this to it
|
||||||
PATH = [ "\${XDG_BIN_HOME}" ];
|
PATH = [ "\${XDG_BIN_HOME}" ];
|
||||||
SDL_VIDEODRIVER = "wayland";
|
SDL_VIDEODRIVER = "wayland";
|
||||||
|
|
@ -57,9 +55,7 @@
|
||||||
gamemode = {
|
gamemode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = { renice = 10; };
|
||||||
renice = 10;
|
|
||||||
};
|
|
||||||
## Warning: GPU optimisations have the potential to damage hardware
|
## Warning: GPU optimisations have the potential to damage hardware
|
||||||
gpu = {
|
gpu = {
|
||||||
apply_gpu_optimisations = "accept-responsibility";
|
apply_gpu_optimisations = "accept-responsibility";
|
||||||
|
|
@ -82,11 +78,10 @@
|
||||||
#};
|
#};
|
||||||
## No clue what this is doing
|
## No clue what this is doing
|
||||||
package = pkgs.steam.override {
|
package = pkgs.steam.override {
|
||||||
extraLibraries = pkgs: [
|
extraLibraries = pkgs: [ pkgs.xorg.libxcb ];
|
||||||
pkgs.xorg.libxcb
|
|
||||||
];
|
|
||||||
## No clue what this shit does
|
## No clue what this shit does
|
||||||
extraPkgs = pkgs: with pkgs; [
|
extraPkgs = pkgs:
|
||||||
|
with pkgs; [
|
||||||
xorg.libXcursor
|
xorg.libXcursor
|
||||||
xorg.libXi
|
xorg.libXi
|
||||||
xorg.libXinerama
|
xorg.libXinerama
|
||||||
|
|
@ -102,13 +97,9 @@
|
||||||
};
|
};
|
||||||
## Not sure we need gamescope here
|
## Not sure we need gamescope here
|
||||||
## as it's defined elsewhere but o well
|
## as it's defined elsewhere but o well
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [ gamescope ];
|
||||||
gamescope
|
|
||||||
];
|
|
||||||
## Gotta have the glorious eggroll
|
## Gotta have the glorious eggroll
|
||||||
extraCompatPackages = with pkgs; [
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||||
proton-ge-bin
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [ ];
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
programs = { };
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
## Jellyfin for home media share
|
## Jellyfin for home media share
|
||||||
|
|
|
||||||
|
|
@ -6,36 +6,26 @@
|
||||||
security.pam.services.serenity.enableGnomeKeyring = true;
|
security.pam.services.serenity.enableGnomeKeyring = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
## For when bimbo needs to play with platters and cbf to deal with cli
|
gnome-disks.enable = true; # For when bimbo needs to manage disks
|
||||||
gnome-disks.enable = true;
|
seahorse.enable = true; # GTK secrets management
|
||||||
## GTK secrets management
|
droidcam.enable = true; # Use android device as a webcam
|
||||||
seahorse.enable = true;
|
obs-studio = { # screen capture, recording, and sharing
|
||||||
## Use android device as a webcam
|
|
||||||
droidcam.enable = true;
|
|
||||||
obs-studio = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
enableVirtualCamera = true;
|
enableVirtualCamera = true; # virtual webcam
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
droidcam-obs
|
droidcam-obs # enables droidcam integration
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
## dont think i NEED this tbh
|
libinput.enable = true; # don't think we NEED this tbh - unsure
|
||||||
libinput.enable = true;
|
gvfs.enable = true; # virtual filesystem, needed this for ... something
|
||||||
## Virtual filesystem, needed this for something i think ?
|
dbus.enable = true; # dbus is for ... unsure
|
||||||
gvfs.enable = true;
|
upower.enable = true; # no clue
|
||||||
## Dbus is for ...
|
udisks2.enable = true; # disk management service
|
||||||
dbus.enable = true;
|
gnome.gnome-keyring.enable = true; # for sudo prompts and stuff
|
||||||
## no clue
|
|
||||||
upower.enable = true;
|
|
||||||
## for managing disks
|
|
||||||
udisks2.enable = true;
|
|
||||||
## GNOME keyring
|
|
||||||
gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, lib, config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,9 @@
|
||||||
./syncthing.nix # syncthing configuration
|
./syncthing.nix # syncthing configuration
|
||||||
./zfs.nix # zfs configuration
|
./zfs.nix # zfs configuration
|
||||||
|
|
||||||
## Selected core modules for import
|
## Additional core modules to import
|
||||||
../../../core/modules/display.nix # display stuff
|
../../../core/modules/jellyfin.nix
|
||||||
#../../../core/modules/regreet.nix # regreet customisation
|
|
||||||
../../../core/modules/misc.nix # didnt work in home-manager :(
|
|
||||||
../../../core/modules/gaming.nix # didnt work in home-manager :(
|
../../../core/modules/gaming.nix # didnt work in home-manager :(
|
||||||
../../../core/modules/audio.nix # sound configuration
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue