253 lines
6.1 KiB
Nix
253 lines
6.1 KiB
Nix
{ inputs, outputs, lib, config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
#./file.nix
|
|
];
|
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
allowUnfree = true;
|
|
permittedInsecurePackages = [
|
|
];
|
|
allowUnsupportedSystem = true;
|
|
};
|
|
|
|
## [START - Stolen code, no clue how it works]
|
|
overlays = [
|
|
## to use overlays exported from other flakes:
|
|
#neovim-nightly-overlay.overlays.default
|
|
|
|
## or define it inline, for example:
|
|
#(final: prev: {
|
|
#hi = final.hello.overrideAttrs (oldAttrs: {
|
|
#patches = [ ./change-hello-to-hi.patch ];
|
|
#});
|
|
#})
|
|
];
|
|
|
|
};
|
|
|
|
## This will add each flake input as a registry
|
|
## To make nix3 commands consistent with your flake
|
|
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
|
## This will additionally add your inputs to the system's legacy channels
|
|
## Making legacy nix commands consistent as well, awesome!
|
|
nix.nixPath = ["/etc/nix/path"];
|
|
environment.etc =
|
|
lib.mapAttrs'
|
|
(name: value: {
|
|
name = "nix/path/${name}";
|
|
value.source = value.flake;
|
|
})
|
|
config.nix.registry;
|
|
## [END - Stolen code, mostly understand from here again]
|
|
|
|
|
|
## I put fonts here because i didn't know where tf else to put them lol
|
|
## CURRENTLY BROKEN - PLEASE FIX
|
|
fonts = {
|
|
packages = with pkgs; [
|
|
spleen
|
|
terminus_font
|
|
terminus_font_ttf
|
|
(nerdfonts.override { fonts = ["NerdFontsSymbolsOnly"]; })
|
|
];
|
|
fontDir.enable = true;
|
|
fontconfig = {
|
|
defaultFonts = {
|
|
serif = [ "spleen-32x64" ];
|
|
sansSerif = [ "spleen-32x64" ];
|
|
monospace = [ "TerminusTTF" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
hardware.opentabletdriver = {
|
|
enable = true;
|
|
#package = [ ];
|
|
#daemon.enable = true;
|
|
#blacklistedKernelModules = [ ];
|
|
};
|
|
|
|
environment.sessionVariables = rec {
|
|
XDG_CACHE_HOME = "$HOME/.cache";
|
|
XDG_CONFIG_HOME = "$HOME/.config";
|
|
XDG_BIN_HOME = "$HOME/.local/bin";
|
|
XDG_DATA_HOME = "$HOME/.local/share";
|
|
# Steam needs this to find Proton-GE
|
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
|
# note: this doesn't replace PATH, it just adds this to it
|
|
PATH = [
|
|
"\${XDG_BIN_HOME}"
|
|
];
|
|
};
|
|
|
|
programs = {
|
|
|
|
## For when bimbo needs to play with platters and cbf to deal with cli
|
|
gnome-disks.enable = true;
|
|
|
|
## A catgirl's favourite shell - NEEDS OWN NIX MODULE
|
|
fish = {
|
|
enable = true;
|
|
};
|
|
|
|
## I wanted this in the user-level area, but w/e i guess - NEEDS OWN NIX MODULE
|
|
steam = {
|
|
enable = true;
|
|
};
|
|
|
|
## To run "normal" linux applications seamlessly - OWN NIX MODULE ?
|
|
appimage = {
|
|
enable = true;
|
|
binfmt = true;
|
|
};
|
|
|
|
## Temporary, fuck vaxery or whatever his name is
|
|
## punk-ass motherfucker, swayfx looks neat
|
|
## and is probably more stable anyway so yeah
|
|
## whatever, im not mad, why would you think im mad
|
|
## its not like the prettiest wayland "wm" has
|
|
## a complete shithead as a lead dev, it's not
|
|
## like i got sold on it and nearly set it up
|
|
## completely before finding out about vaxo-bingus'
|
|
## chuddery and deciding i had to jump ship to sway
|
|
## a "wm" with comparatively little by ways of
|
|
## "eye-candy". Oh boy am i glad swayfx exists
|
|
##
|
|
## Authors note: this is excessive, overly dramatic,
|
|
## and played entirely (mostly) for laughs.
|
|
hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
|
|
## NixOS CLI helper
|
|
nh = {
|
|
enable = true;
|
|
flake = "/home/serenity/flakes/nixdots";
|
|
};
|
|
|
|
## For handling encryption keys
|
|
gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
#pinentryPackage = [ ];
|
|
};
|
|
|
|
};
|
|
|
|
## GNOME stuff
|
|
services.gvfs.enable = true; # Virtual filesystem, needed this for something i think ?
|
|
services.gnome.gnome-keyring.enable = true; # maybe this fixey keyring OwO ?
|
|
services.gnome.gnome-settings-daemon.enable = true; # GUI settings ?
|
|
security.pam.services.serenity.enableGnomeKeyring = true; # dunno if i did this right, but possible needed for keyring/polkit stuff ?
|
|
|
|
|
|
## xserver still needed for xwayland stuff
|
|
services.xserver.enable = true;
|
|
|
|
## login greeter/display manager
|
|
## set to run on wayland also
|
|
services.displayManager.sddm = {
|
|
enable = true;
|
|
wayland.enable = true;
|
|
};
|
|
|
|
## We switched to neovim -mostly- full-time
|
|
environment.variables = {
|
|
EDITOR = "neovim";
|
|
SYSTEMD_EDITOR = "neovim";
|
|
VISUAL = "neovim";
|
|
};
|
|
|
|
## Enabling flatpak in case i need it
|
|
services.flatpak.enable = true;
|
|
|
|
## ratbagd for gaming mouse config
|
|
services.ratbagd.enable = true;
|
|
|
|
## All* system-level packages declared here
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
## Needed for that graphical config manager, suspect that the
|
|
## whole inputs.nix- yaddah yaddah is unnecessary.
|
|
## and look, -we- don't need a graphical config editor, but
|
|
## the end goal here is to make a system environment that could
|
|
## theoretically pass off as a complete linux distribution.
|
|
## So there needs to be -some- way for users who are unwilling
|
|
## to use a terminal and are more comfortable with a GUI.
|
|
inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
|
|
#nixos-conf-editor
|
|
|
|
## Temporary desktop/user-level
|
|
#waybar
|
|
udiskie
|
|
gparted
|
|
pavucontrol
|
|
networkmanager
|
|
seahorse
|
|
#polkit-gnome
|
|
gnome-keyring
|
|
polkit-kde-agent
|
|
xorg.xhost
|
|
|
|
## Jellyfin for home media share
|
|
jellyfin
|
|
jellyfin-web
|
|
jellyfin-ffmpeg
|
|
|
|
## Nix specific tools
|
|
#nix-tree
|
|
#nix-init
|
|
#nix-index
|
|
#nixpkgs-review
|
|
#nix-output-monitor
|
|
|
|
## Filsesystem utilities
|
|
xfsprogs
|
|
ddrutility
|
|
exfatprogs
|
|
btrfs-progs
|
|
ntfs3g
|
|
ntfs2btrfs
|
|
scrounge-ntfs
|
|
|
|
## CLI tools & utilities
|
|
fd
|
|
bc
|
|
zip
|
|
tldr
|
|
wget
|
|
curl
|
|
bash
|
|
file
|
|
tree
|
|
btop
|
|
micro
|
|
unzip
|
|
gnupg
|
|
s-tui
|
|
steam
|
|
blueman
|
|
busybox
|
|
ripgrep
|
|
killall
|
|
usbutils
|
|
pciutils
|
|
xdg_utils
|
|
moreutils
|
|
libsecret
|
|
git-crypt
|
|
undervolt
|
|
#gitwatch
|
|
android-tools
|
|
magic-wormhole
|
|
|
|
];
|
|
|
|
}
|