formatted everything, things are looking nice now.

This commit is contained in:
Charlie Root 2024-05-15 00:14:59 +02:00
commit d2d4054aa5
57 changed files with 2269 additions and 2311 deletions

View file

@ -1,7 +1,6 @@
{ {
description = "lololo"; description = "lololo";
outputs = inputs @ { self, nixpkgs, ... }: outputs = inputs@{ self, nixpkgs, ... }: {
{
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
nixosConfigurations = import ./hosts { inherit inputs; }; nixosConfigurations = import ./hosts { inherit inputs; };
}; };
@ -18,7 +17,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland"; nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
split-monitor-workspaces = { split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces"; url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";

View file

@ -1,5 +1,6 @@
{ pkgs, lib, config, callPackage, ... }: { pkgs, lib, config, callPackage, ... }:
with lib; let with lib;
let
username = config.modules.other.system.username; username = config.modules.other.system.username;
cfg = config.modules.programs.awesome; cfg = config.modules.programs.awesome;
in { in {
@ -16,7 +17,8 @@ in {
options = "grp:alt_space_toggle"; options = "grp:alt_space_toggle";
}; };
windowManager.awesome.enable = true; windowManager.awesome.enable = true;
displayManager.setupCommands = "${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1"; displayManager.setupCommands =
"${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1";
}; };
}; };
}; };

View file

@ -1,5 +1,4 @@
{ config, inputs, pkgs, lib, ... }: { config, inputs, pkgs, lib, ... }: {
{
# allow unfree packages # allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Time Zone # Time Zone
@ -21,7 +20,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
boot.kernelModules = [ "v4l2loopback" ]; boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ]; boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
# services.picom.enable = true; # services.picom.enable = true;
modules = { modules = {
other = { other = {
system = { system = {
@ -40,25 +39,21 @@
btop.enable = true; btop.enable = true;
mpv.enable = true; mpv.enable = true;
kitty.enable = true; kitty.enable = true;
# awesome.enable = true; # awesome.enable = true;
hyprland.enable = true; hyprland.enable = true;
newsboat.enable = true; newsboat.enable = true;
# emacs.enable = true; # emacs.enable = true;
fish.enable = true; fish.enable = true;
stylix.enable = true; stylix.enable = true;
helix.enable = true; helix.enable = true;
nh.enable = true; nh.enable = true;
schizofox.enable = true; schizofox.enable = true;
# spicetify.enable = true; # spicetify.enable = true;
anyrun.enable = true; anyrun.enable = true;
}; };
services = { services = { pipewire.enable = true; };
pipewire.enable = true;
};
themes = { themes = {
gtk = { gtk = { enable = true; };
enable = true;
};
qt = { qt = {
enable = true; enable = true;
package = pkgs.kde-gruvbox; package = pkgs.kde-gruvbox;

View file

@ -1,30 +1,29 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/0423508a-6906-4872-baeb-2b1e6bd017a4"; device = "/dev/disk/by-uuid/0423508a-6906-4872-baeb-2b1e6bd017a4";
fsType = "ext4"; fsType = "ext4";
options = [ "noatime" "nodiratime" "discard" ]; options = [ "noatime" "nodiratime" "discard" ];
}; };
boot.initrd.luks.devices."luks-c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f".device = "/dev/disk/by-uuid/c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f"; boot.initrd.luks.devices."luks-c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f".device =
"/dev/disk/by-uuid/c03fc486-bdd7-46bf-ac2f-1a55fe1abd6f";
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/D299-5174"; device = "/dev/disk/by-uuid/D299-5174";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices = [
[
# { device = "/dev/disk/by-uuid/bc68b3b5-1b58-4d8c-be8d-b06bbc4b6da7"; } # { device = "/dev/disk/by-uuid/bc68b3b5-1b58-4d8c-be8d-b06bbc4b6da7"; }
]; ];
@ -36,5 +35,6 @@
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -5,7 +5,8 @@ let
username = config.modules.other.system.username; username = config.modules.other.system.username;
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland; inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
inherit (inputs.anyrun.packages.${pkgs.system}) anyrun; inherit (inputs.anyrun.packages.${pkgs.system}) anyrun;
inherit (inputs.nixpkgs-wayland.packages.${pkgs.system}) wl-clipboard swww wlsunset; inherit (inputs.nixpkgs-wayland.packages.${pkgs.system})
wl-clipboard swww wlsunset;
inherit (inputs.waybar.packages.${pkgs.system}) waybar; inherit (inputs.waybar.packages.${pkgs.system}) waybar;
in { in {
options.modules.programs.hyprland.enable = mkEnableOption "hyprland"; options.modules.programs.hyprland.enable = mkEnableOption "hyprland";
@ -79,7 +80,6 @@ in {
"19, monitor:HDMI-A-2" "19, monitor:HDMI-A-2"
"20, monitor:HDMI-A-2" "20, monitor:HDMI-A-2"
"21, monitor:DP-2, default:true" "21, monitor:DP-2, default:true"
"22, monitor:DP-2" "22, monitor:DP-2"
"23, monitor:DP-2" "23, monitor:DP-2"
@ -108,9 +108,7 @@ in {
follow_mouse = true; follow_mouse = true;
repeat_rate = 50; repeat_rate = 50;
repeat_delay = 250; repeat_delay = 250;
tablet = { tablet = { output = "HDMI-A-2"; };
output = "HDMI-A-2";
};
}; };
general = { general = {
@ -158,13 +156,9 @@ in {
]; ];
}; };
dwindle = { dwindle = { no_gaps_when_only = true; };
no_gaps_when_only = true;
};
debug = { debug = { disable_logs = false; };
disable_logs =false;
};
misc = { misc = {
enable_swallow = true; enable_swallow = true;
@ -324,7 +318,7 @@ in {
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(waybar.overrideAttrs (oldAttrs: { (waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"]; mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
})) }))
dunst dunst
libnotify libnotify

View file

@ -19,7 +19,9 @@ in {
fastfetch fastfetch
feh feh
(fenix.complete.withComponents [ (fenix.complete.withComponents [
"cargo" "clippy" "rust-src" "cargo"
"clippy"
"rust-src"
"rustc" "rustc"
"rustfmt" "rustfmt"
]) ])
@ -52,6 +54,7 @@ in {
networkmanagerapplet networkmanagerapplet
nextcloud-client nextcloud-client
nicotine-plus nicotine-plus
nil
nitch nitch
nixpkgs-wayland.swww nixpkgs-wayland.swww
nmap nmap

View file

@ -1,7 +1 @@
_: { _: { imports = [ ./neovim.nix ./fish.nix ./nh.nix ]; }
imports = [
./neovim.nix
./fish.nix
./nh.nix
];
}

View file

@ -1,9 +1,6 @@
{ { config, lib, pkgs, ... }:
config, with lib;
lib, let
pkgs,
...
}: with lib; let
cfg = config.modules.programs.fish; cfg = config.modules.programs.fish;
username = config.modules.other.system.username; username = config.modules.other.system.username;
hostname = config.modules.other.system.hostname; hostname = config.modules.other.system.hostname;
@ -14,7 +11,7 @@ in {
extraAliases = mkOption { extraAliases = mkOption {
type = types.attrs; type = types.attrs;
description = "extra shell aliases"; description = "extra shell aliases";
default = {}; default = { };
}; };
}; };
@ -36,11 +33,26 @@ in {
enable = true; enable = true;
interactiveShellInit = "set fish_greeting"; interactiveShellInit = "set fish_greeting";
plugins = [ plugins = [
{ name = "grc"; src = pkgs.fishPlugins.grc.src; } {
{ name = "sponge"; src = pkgs.fishPlugins.sponge.src; } name = "grc";
{ name = "done"; src = pkgs.fishPlugins.done.src; } src = pkgs.fishPlugins.grc.src;
{ name = "colored_man_pages"; src = pkgs.fishPlugins.colored-man-pages.src; } }
{ name = "tide"; src = pkgs.fishPlugins.tide.src; } {
name = "sponge";
src = pkgs.fishPlugins.sponge.src;
}
{
name = "done";
src = pkgs.fishPlugins.done.src;
}
{
name = "colored_man_pages";
src = pkgs.fishPlugins.colored-man-pages.src;
}
{
name = "tide";
src = pkgs.fishPlugins.tide.src;
}
]; ];
shellAbbrs = { shellAbbrs = {
c = "clear"; c = "clear";
@ -56,7 +68,8 @@ in {
v = "nvim"; v = "nvim";
h = "hx"; h = "hx";
e = "emacs"; e = "emacs";
update = "sudo nixos-rebuild switch --flake \"${gitPath}#${hostname}\""; update =
''sudo nixos-rebuild switch --flake "${gitPath}#${hostname}"'';
flake = "cd '${gitPath}'"; flake = "cd '${gitPath}'";
} // cfg.extraAliases; } // cfg.extraAliases;
}; };

View file

@ -9,8 +9,7 @@ let
}; };
cfg = config.modules.programs.neovim-old; cfg = config.modules.programs.neovim-old;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in in {
{
options.modules.programs.neovim-old.enable = lib.mkEnableOption "neovim-old"; options.modules.programs.neovim-old.enable = lib.mkEnableOption "neovim-old";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -30,6 +29,5 @@ in
}; };
}; };
}; };
} }

View file

@ -1,5 +1,6 @@
{ pkgs, lib, config, callPackage, ... }: { pkgs, lib, config, callPackage, ... }:
with lib; let with lib;
let
username = config.modules.other.system.username; username = config.modules.other.system.username;
cfg = config.modules.programs.nh; cfg = config.modules.programs.nh;
in { in {

View file

@ -1,9 +1 @@
_: { _: { imports = [ ./cli ./gui ./tui ./other ./services ]; }
imports = [
./cli
./gui
./tui
./other
./services
];
}

View file

@ -1,3 +1 @@
_: { _: { imports = [ ./anyrun.nix ]; }
imports = [./anyrun.nix];
}

View file

@ -15,6 +15,6 @@ _: {
./steam.nix ./steam.nix
./schizofox.nix ./schizofox.nix
./minecraft.nix ./minecraft.nix
# ./emacs # ./emacs
]; ];
} }

View file

@ -1,5 +1 @@
_:{ _: { imports = [ ./emacs.nix ]; }
imports = [
./emacs.nix
];
}

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, inputs, ... }: { config, lib, pkgs, inputs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.emacs; cfg = config.modules.programs.emacs;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {

View file

@ -1,14 +1,16 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
with lib; let with lib;
let
username = config.modules.other.system.username; username = config.modules.other.system.username;
cfg = config.modules.programs.firefox; cfg = config.modules.programs.firefox;
in { in {
options.modules.programs.firefox = { options.modules.programs.firefox = {
enable = mkEnableOption "firefox"; enable = mkEnableOption "firefox";
extensions = mkOption { extensions = mkOption {
description = "firefox extensions (format like https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265)"; description =
"firefox extensions (format like https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265)";
type = types.attrs; type = types.attrs;
default = {}; default = { };
}; };
}; };
@ -21,7 +23,7 @@ in {
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value= true; Value = true;
Locked = true; Locked = true;
Cryptomining = true; Cryptomining = true;
Fingerprinting = true; Fingerprinting = true;
@ -33,8 +35,10 @@ in {
OverrideFirstRunPage = ""; OverrideFirstRunPage = "";
OverridePostUpdatePage = ""; OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true; DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab" DisplayBookmarksToolbar =
DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on" "never"; # alternatives: "always" or "newtab"
DisplayMenuBar =
"default-off"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate" SearchBar = "unified"; # alternative: "separate"
FirefoxSuggest = { FirefoxSuggest = {
WebSuggestions = true; WebSuggestions = true;
@ -53,12 +57,16 @@ in {
OfferToSaveLogins = false; OfferToSaveLogins = false;
font = "Lexend"; font = "Lexend";
ExtensionSettings = lib.mkMerge [{ ExtensionSettings = lib.mkMerge [
{
"uBlock0@raymondhill.net" = { "uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; install_url =
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed"; installation_mode = "force_installed";
}; };
} cfg.extensions]; }
cfg.extensions
];
}; };
}; };
}; };

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.themes.gtk; cfg = config.modules.themes.gtk;
username = config.modules.other.system.username; username = config.modules.other.system.username;
hmCfg = config.home-manager.users.${username}; hmCfg = config.home-manager.users.${username};
@ -48,7 +49,6 @@ in {
#GTK_THEME = "Gruvbox-Dark-BL"; #GTK_THEME = "Gruvbox-Dark-BL";
# GTK_USE_PORTAL = "1"; # GTK_USE_PORTAL = "1";
}; };
}; };
}; };

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.kitty; cfg = config.modules.programs.kitty;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -17,8 +18,7 @@ in {
#background_opacity = "0.9"; #background_opacity = "0.9";
confirm_os_window_close = "0"; confirm_os_window_close = "0";
#font_family = "JetBrainsMono Nerd Font"; #font_family = "JetBrainsMono Nerd Font";
/* /* cursor_text_color = "background";
cursor_text_color = "background";
url_color = "#83a598"; url_color = "#83a598";

View file

@ -1,5 +1,6 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
with lib; let with lib;
let
username = config.modules.other.system.username; username = config.modules.other.system.username;
cfg = config.modules.programs.minecraft; cfg = config.modules.programs.minecraft;
in { in {
@ -10,19 +11,17 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Set wayland environment flag # Set wayland environment flag
environment.variables = mkIf cfg.wayland { environment.variables =
__GL_THREADED_OPTIMIZATIONS=0; mkIf cfg.wayland { __GL_THREADED_OPTIMIZATIONS = 0; };
};
# Install glfw-wayland-minecraft # Install glfw-wayland-minecraft
environment.systemPackages = with pkgs; mkIf cfg.wayland [ environment.systemPackages = with pkgs;
mkIf cfg.wayland [
glfw-wayland-minecraft # Use these parameters in the prism launcher: -Dfml.earlyprogresswindow=false -Dorg.lwjgl.glfw.libname=/nix/store/ypkdx5844pp1vdw2z2nmnf2nb9kgl0mp-glfw-wayland-minecraft-unstable-2023-06-01/lib/libglfw.so glfw-wayland-minecraft # Use these parameters in the prism launcher: -Dfml.earlyprogresswindow=false -Dorg.lwjgl.glfw.libname=/nix/store/ypkdx5844pp1vdw2z2nmnf2nb9kgl0mp-glfw-wayland-minecraft-unstable-2023-06-01/lib/libglfw.so
]; ];
home-manager.users.${username} = { home-manager.users.${username} = {
# Install minecraft # Install minecraft
home.packages = with pkgs; [ home.packages = with pkgs; [ prismlauncher ];
prismlauncher
];
}; };
}; };
} }

View file

@ -1,9 +1,6 @@
{ { config, lib, pkgs, ... }:
config, with lib;
lib, let
pkgs,
...
}: with lib; let
cfg = config.modules.programs.mpv; cfg = config.modules.programs.mpv;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -20,12 +17,7 @@ in {
osd-bar = "no"; osd-bar = "no";
border = "no"; border = "no";
}; };
scripts = with pkgs.mpvScripts; [ scripts = with pkgs.mpvScripts; [ mpris thumbfast sponsorblock uosc ];
mpris
thumbfast
sponsorblock
uosc
];
}; };
}; };
}; };

View file

@ -1,9 +1,6 @@
{ { config, lib, pkgs, ... }:
config, with lib;
lib, let
pkgs,
...
}: with lib; let
theme = { theme = {
package = pkgs.gruvbox-gtk-theme; package = pkgs.gruvbox-gtk-theme;
name = "Gruvbox-Dark-BL"; name = "Gruvbox-Dark-BL";
@ -32,9 +29,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.sessionVariables = { environment.sessionVariables = { QT_QPA_PLATFORMTHEME = "qt5ct"; };
QT_QPA_PLATFORMTHEME = "qt5ct";
};
environment.variables = { environment.variables = {
QT_STYLE_OVERRIDE = lib.mkForce "kvantum"; QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
GTK_THEME = theme.name; GTK_THEME = theme.name;

View file

@ -6,8 +6,7 @@ let
cfg = config.modules.programs.rofi; cfg = config.modules.programs.rofi;
in { in {
options.modules.programs.rofi.enable = mkEnableOption "rofi"; options.modules.programs.rofi.enable = mkEnableOption "rofi";
config = mkIf cfg.enable { config =
environment.systemPackages = with pkgs; [ rofi ]; mkIf cfg.enable { environment.systemPackages = with pkgs; [ rofi ]; };
};
} }

View file

@ -1,12 +1,11 @@
{ config, inputs, lib, ... }: let { config, inputs, lib, ... }:
let
cfg = config.modules.programs.schizofox; cfg = config.modules.programs.schizofox;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
in { in {
options.modules.programs.schizofox = { options.modules.programs.schizofox = { enable = mkEnableOption "schizofox"; };
enable = mkEnableOption "schizofox";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
@ -29,21 +28,24 @@ in {
}; };
search = { search = {
defaultSearchEngine = "DuckDuckGo"; defaultSearchEngine = "DuckDuckGo";
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"]; removeEngines =
[ "Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia" ];
addEngines = [ addEngines = [
{ {
Name = "NixOS Packages"; Name = "NixOS Packages";
Description = "NixOS Unstable package search"; Description = "NixOS Unstable package search";
Alias = "!np"; Alias = "!np";
Method = "GET"; Method = "GET";
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}"; URLTemplate =
"https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
} }
{ {
Name = "NixOS Options"; Name = "NixOS Options";
Description = "NixOS Unstable option search"; Description = "NixOS Unstable option search";
Alias = "!no"; Alias = "!no";
Method = "GET"; Method = "GET";
URLTemplate = "https://search.nixos.org/options?channel=unstable&query={searchTerms}"; URLTemplate =
"https://search.nixos.org/options?channel=unstable&query={searchTerms}";
} }
{ {
Name = "NixOS Wiki"; Name = "NixOS Wiki";
@ -57,28 +59,32 @@ in {
Description = "Home Manager option search"; Description = "Home Manager option search";
Alias = "!hm"; Alias = "!hm";
Method = "GET"; Method = "GET";
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}"; URLTemplate =
"https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
} }
{ {
Name = "Arch Wiki"; Name = "Arch Wiki";
Description = "Arch Wiki search"; Description = "Arch Wiki search";
Alias = "!aw"; Alias = "!aw";
Method = "GET"; Method = "GET";
URLTemplate = "https://wiki.archlinux.org/index.php?search={searchTerms}"; URLTemplate =
"https://wiki.archlinux.org/index.php?search={searchTerms}";
} }
{ {
Name = "Gentoo Wiki"; Name = "Gentoo Wiki";
Description = "Gentoo Wiki search"; Description = "Gentoo Wiki search";
Alias = "!gw"; Alias = "!gw";
Method = "GET"; Method = "GET";
URLTemplate = "https://wiki.gentoo.org/index.php?search={searchTerms}"; URLTemplate =
"https://wiki.gentoo.org/index.php?search={searchTerms}";
} }
{ {
Name = "Debian Wiki"; Name = "Debian Wiki";
Description = "Debian Wiki search"; Description = "Debian Wiki search";
Alias = "!dw"; Alias = "!dw";
Method = "GET"; Method = "GET";
URLTemplate = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}"; URLTemplate =
"https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
} }
]; ];
}; };
@ -87,13 +93,15 @@ in {
darkreader.enable = true; darkreader.enable = true;
# vimium.enable = true; # vimium.enable = true;
extraExtensions = { extraExtensions = {
"webextension@vimium".install_url = "https://addons.mozilla.org/firefox/downloads/file/4259790/vimium_ff-2.1.2.xpi"; "webextension@vimium".install_url =
"https://addons.mozilla.org/firefox/downloads/file/4259790/vimium_ff-2.1.2.xpi";
}; };
}; };
security = { security = {
sanitizeOnShutdown = true; sanitizeOnShutdown = true;
sandbox = true; sandbox = true;
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"; userAgent =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
}; };
misc = { misc = {

View file

@ -1,5 +1,6 @@
{ config, pkgs, lib, inputs, ... }: { config, pkgs, lib, inputs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.spicetify; cfg = config.modules.programs.spicetify;
username = config.modules.other.system.username; username = config.modules.other.system.username;
#inherit (inputs.spicetify-nix.packages.${pkgs.system}.default) spicePkgs; #inherit (inputs.spicetify-nix.packages.${pkgs.system}.default) spicePkgs;
@ -7,9 +8,5 @@ with lib; let
in { in {
options.modules.programs.spicetify.enable = mkEnableOption "spicetify"; options.modules.programs.spicetify.enable = mkEnableOption "spicetify";
imports = [ spicetify-nix.homeManagerModule ]; imports = [ spicetify-nix.homeManagerModule ];
config = mkIf cfg.enable { config = mkIf cfg.enable { programs.spicetify = { enable = true; }; };
programs.spicetify = {
enable = true;
};
};
} }

View file

@ -1,6 +1,6 @@
{ config, lib, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
with lib; let with lib;
let
username = config.modules.other.system.username; username = config.modules.other.system.username;
cfg = config.modules.programs.steam; cfg = config.modules.programs.steam;
in { in {
@ -16,7 +16,6 @@ in {
dedicatedServer.openFirewall = true; dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true; gamescopeSession.enable = mkIf cfg.gamescope true;
}; };
home-manager.users.${username} = { home-manager.users.${username} = { };
};
}; };
} }

View file

@ -1,5 +1,6 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.stylix; cfg = config.modules.programs.stylix;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -10,7 +11,8 @@ in {
stylix = { stylix = {
polarity = "dark"; polarity = "dark";
image = ../../FreeBSD.png; image = ../../FreeBSD.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml"; base16Scheme =
"${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml";
autoEnable = true; autoEnable = true;
targets = { targets = {
btop.enable = true; btop.enable = true;
@ -47,15 +49,18 @@ in {
}; };
monospace = { monospace = {
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}); package =
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
name = "JetBrainsMono"; name = "JetBrainsMono";
}; };
serif = { serif = {
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}); package =
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
name = "JetBrainsMono"; name = "JetBrainsMono";
}; };
sansSerif = { sansSerif = {
package = (pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];}); package =
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
name = "JetBrainsMono"; name = "JetBrainsMono";
}; };
emoji = { emoji = {

View file

@ -1,15 +1,10 @@
{ { config, lib, pkgs, ... }:
config, with lib;
lib, let
pkgs,
...
}: with lib; let
cfg = config.modules.programs.vesktop; cfg = config.modules.programs.vesktop;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
options.modules.programs.vesktop = { options.modules.programs.vesktop = { enable = mkEnableOption "vesktop"; };
enable = mkEnableOption "vesktop";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
@ -33,8 +28,10 @@ in {
autoUpdate = false; autoUpdate = false;
autoUpdateNotification = false; autoUpdateNotification = false;
useQuickCss = true; useQuickCss = true;
themeLinks = ["https://github.com/Costeer/Gruvbox-Material-Themes/blob/main/Discord%20Theme/gruvboxmaterial.theme.css"]; themeLinks = [
enabledThemes = ["gruvboxmaterial.theme.css"]; "https://github.com/Costeer/Gruvbox-Material-Themes/blob/main/Discord%20Theme/gruvboxmaterial.theme.css"
];
enabledThemes = [ "gruvboxmaterial.theme.css" ];
enableReactDevtools = true; enableReactDevtools = true;
frameless = false; frameless = false;
transparent = false; transparent = false;
@ -132,7 +129,7 @@ in {
iLoveSpam.enabled = true; iLoveSpam.enabled = true;
IgnoreActivities = { IgnoreActivities = {
enabled = true; enabled = true;
ignoredActivities = []; ignoredActivities = [ ];
}; };
ImageZoom = { ImageZoom = {
enabled = true; enabled = true;
@ -264,7 +261,8 @@ in {
ServerProfile.enabled = true; ServerProfile.enabled = true;
ShikiCodeblocks = { ShikiCodeblocks = {
enabled = true; enabled = true;
theme = "https://raw.githubusercontent.com/shikijs/shiki/0b28ad8ccfbf2615f2d9d38ea8255416b8ac3043/packages/shiki/themes/dark-plus.json"; theme =
"https://raw.githubusercontent.com/shikijs/shiki/0b28ad8ccfbf2615f2d9d38ea8255416b8ac3043/packages/shiki/themes/dark-plus.json";
tryHljs = "SECONDARY"; tryHljs = "SECONDARY";
uesDevIcon = "GREYSCALE"; uesDevIcon = "GREYSCALE";
}; };

View file

@ -1,5 +1,4 @@
{ pkgs, nur, ...}: { pkgs, nur, ... }:
let let
vivado-desktop-symbol = pkgs.makeDesktopItem { vivado-desktop-symbol = pkgs.makeDesktopItem {
@ -7,8 +6,7 @@ let
desktopName = "Vivado"; desktopName = "Vivado";
exec = "${pkgs.nur.repos.lschuermann.vivado-2022_2}/bin/vivado"; exec = "${pkgs.nur.repos.lschuermann.vivado-2022_2}/bin/vivado";
}; };
in in {
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# this propietary software is huge, but I need it for # this propietary software is huge, but I need it for
@ -17,7 +15,6 @@ in
vivado-desktop-symbol vivado-desktop-symbol
]; ];
# Create udev rules. Reference: https://blog.kotatsu.dev/posts/2021-09-14-vivado-on-nixos/ # Create udev rules. Reference: https://blog.kotatsu.dev/posts/2021-09-14-vivado-on-nixos/
services.udev.packages = [ services.udev.packages = [
(pkgs.writeTextFile { (pkgs.writeTextFile {

View file

@ -1,9 +1,6 @@
{ { config, lib, pkgs, ... }:
config, with lib;
lib, let
pkgs,
...
}: with lib; let
cfg = config.modules.programs.zathura; cfg = config.modules.programs.zathura;
username = config.modules.other.system.username; username = config.modules.other.system.username;
catppuccin = pkgs.fetchFromGitHub { catppuccin = pkgs.fetchFromGitHub {
@ -18,15 +15,14 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
xdg.configFile."zathura/catppuccin-mocha".source = "${catppuccin}/src/catppuccin-mocha"; xdg.configFile."zathura/catppuccin-mocha".source =
"${catppuccin}/src/catppuccin-mocha";
programs.zathura = { programs.zathura = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
include catppuccin-mocha include catppuccin-mocha
''; '';
options = { options = { selection-clipboard = "clipboard"; };
selection-clipboard = "clipboard";
};
}; };
}; };
}; };

View file

@ -1,8 +1,2 @@
_: { _: { imports = [ ./home-manager.nix ./system.nix ./xdg.nix ]; }
imports = [
./home-manager.nix
./system.nix
./xdg.nix
];
}

View file

@ -1,10 +1,6 @@
{ { config, inputs, lib, self, ... }:
config, with lib;
inputs, let
lib,
self,
...
}: with lib; let
cfg = config.modules.other.home-manager; cfg = config.modules.other.home-manager;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -17,7 +13,7 @@ in {
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs self;}; extraSpecialArgs = { inherit inputs self; };
users.${username} = { users.${username} = {
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;

View file

@ -1,9 +1,6 @@
{ { config, lib, ... }:
config, with lib;
lib, let cfg = config.modules.other.system;
...
}: with lib; let
cfg = config.modules.other.system;
in { in {
options.modules.other.system = { options.modules.other.system = {
hostname = mkOption { hostname = mkOption {

View file

@ -12,9 +12,7 @@ let
terminal = "kitty.desktop"; terminal = "kitty.desktop";
in { in {
environment.sessionVariables = { environment.sessionVariables = { TERMINAL = "${terminal}"; };
TERMINAL = "${terminal}";
};
home-manager.users.${username} = { home-manager.users.${username} = {
xdg = { xdg = {

View file

@ -1,7 +1 @@
_: { _: { imports = [ ./pipewire.nix ./ssh.nix ./greetd.nix ]; }
imports = [
./pipewire.nix
./ssh.nix
./greetd.nix
];
}

View file

@ -1,5 +1,6 @@
{ config, inputs, lib, pkgs, ... }: { config, inputs, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.services.greetd; cfg = config.modules.services.greetd;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
@ -16,8 +17,14 @@ with lib; let
workspace=1,default:true,gapsout:0,gapsin:0,border:false,decorate:false workspace=1,default:true,gapsout:0,gapsin:0,border:false,decorate:false
#exec-once=[workspace 1;fullscreen;noanim] ${pkgs.greetd.${cfg.greeter}}/bin/${cfg.greeter} -l; ${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch exit #exec-once=[workspace 1;fullscreen;noanim] ${
#exec-once=${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch focuswindow ${cfg.greeter} pkgs.greetd.${cfg.greeter}
}/bin/${cfg.greeter} -l; ${
inputs.hyprland.packages.${pkgs.system}.hyprland
}/bin/hyprctl dispatch exit
#exec-once=${
inputs.hyprland.packages.${pkgs.system}.hyprland
}/bin/hyprctl dispatch focuswindow ${cfg.greeter}
''; '';
in { in {
options.modules.services.greetd = { options.modules.services.greetd = {
@ -36,11 +43,14 @@ in {
services.greetd = { services.greetd = {
enable = true; enable = true;
settings.default_session = { settings.default_session = {
command = "${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/Hyprland --config ${hyprlandConfig}"; command = "${
inputs.hyprland.packages.${pkgs.system}.hyprland
}/bin/Hyprland --config ${hyprlandConfig}";
user = username; user = username;
}; };
}; };
environment.etc."greetd/environments".text = concatStringsSep "\n" cfg.launchOptions; environment.etc."greetd/environments".text =
concatStringsSep "\n" cfg.launchOptions;
}; };
} }

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; let with lib;
cfg = config.modules.services.pipewire; let cfg = config.modules.services.pipewire;
in { in {
options.modules.services.pipewire.enable = mkEnableOption "pipewire"; options.modules.services.pipewire.enable = mkEnableOption "pipewire";

View file

@ -1,14 +1,11 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.ssh; cfg = config.modules.programs.ssh;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
options.modules.programs.ssh.enable = mkEnableOption "ssh"; options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable { config = mkIf cfg.enable { programs.ssh = { startAgent = true; }; };
programs.ssh = {
startAgent = true;
};
};
} }

View file

@ -1,5 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.btop; cfg = config.modules.programs.btop;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, inputs, ... }: { config, lib, pkgs, inputs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.helix; cfg = config.modules.programs.helix;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -15,15 +16,25 @@ in {
mouse = false; mouse = false;
bufferline = "multiple"; bufferline = "multiple";
lsp.display-messages = true; lsp.display-messages = true;
cursor-shape = { cursor-shape = { insert = "bar"; };
insert = "bar"; statusline.left =
}; [ "mode" "spinner" "version-control" "file-name" ];
}; };
keys.normal = { keys.normal = {
C-g = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"]; C-g =
esc = ["collapse_selection" "keep_primary_selection"]; [ ":new" ":insert-output lazygit" ":buffer-close!" ":redraw" ];
C-t = [ ":new" ":insert-output fish" ":buffer-close!" ":redraw" ];
esc = [ "collapse_selection" "keep_primary_selection" ];
A-H = "goto_previous_buffer";
A-L = "goto_next_buffer";
A-w = ":buffer-close";
}; };
}; };
languages.language = [{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.nixfmt}/bin/nixfmt";
}];
}; };
}; };
}; };

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.ncmpcpp; cfg = config.modules.programs.ncmpcpp;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -10,16 +11,20 @@ in {
xdg.configFile."ncmpcpp/config".source = ./config; xdg.configFile."ncmpcpp/config".source = ./config;
programs.ncmpcpp = { programs.ncmpcpp = {
enable = true; enable = true;
package = (pkgs.ncmpcpp.override {visualizerSupport = true;}); package = (pkgs.ncmpcpp.override { visualizerSupport = true; });
mpdMusicDir = "/home/vali/Nextcloud/Media/Music"; mpdMusicDir = "/home/vali/Nextcloud/Media/Music";
settings = { settings = {
mpd_host = "127.0.0.1"; mpd_host = "127.0.0.1";
mpd_port = "6600"; mpd_port = "6600";
alternative_header_first_line_format = "$5{$b%t$/b}$9"; alternative_header_first_line_format = "$5{$b%t$/b}$9";
alternative_header_second_line_format = "$3by $7{$b%a$/b}$9 $3from $7{$b%b$/b}$9 $5{(%y)}"; alternative_header_second_line_format =
song_list_format = " $2%n$(end) $9 $3%a$(end) $(245)-$9 $(246)%t$9 $R{ $5%y$9}$(end) $(246)%lq$(end)"; "$3by $7{$b%a$/b}$9 $3from $7{$b%b$/b}$9 $5{(%y)}";
song_columns_list_format ="(3f)[red]{n} (3f)[246]{} (35)[white]{t} (18)[blue]{a} (30)[green]{b} (5f)[yellow]{d} (5f)[red]{y} (7f)[magenta]{l}"; song_list_format =
song_status_format = "$b $8%A $8$3 $3%t $3$5 $5%b $5$2 $2%y $2$8 %g"; " $2%n$(end) $9 $3%a$(end) $(245)-$9 $(246)%t$9 $R{ $5%y$9}$(end) $(246)%lq$(end)";
song_columns_list_format =
"(3f)[red]{n} (3f)[246]{} (35)[white]{t} (18)[blue]{a} (30)[green]{b} (5f)[yellow]{d} (5f)[red]{y} (7f)[magenta]{l}";
song_status_format =
"$b $8%A $8$3 $3%t $3$5 $5%b $5$2 $2%y $2$8 %g";
playlist_display_mode = "columns"; playlist_display_mode = "columns";
browser_display_mode = "columns"; browser_display_mode = "columns";
search_engine_display_mode = "columns"; search_engine_display_mode = "columns";
@ -50,7 +55,7 @@ in {
titles_visibility = "no"; titles_visibility = "no";
enable_window_title = "yes"; enable_window_title = "yes";
statusbar_visibility = "yes"; statusbar_visibility = "yes";
empty_tag_marker=""; empty_tag_marker = "";
mouse_support = "yes"; mouse_support = "yes";
header_visibility = "no"; header_visibility = "no";
display_remaining_time = "no"; display_remaining_time = "no";
@ -66,7 +71,7 @@ in {
mouse_list_scroll_whole_page = "no"; mouse_list_scroll_whole_page = "no";
show_hidden_files_in_local_browser = "no"; show_hidden_files_in_local_browser = "no";
startup_screen = "playlist"; startup_screen = "playlist";
execute_on_song_change="/home/dobbie/.bin/np"; execute_on_song_change = "/home/dobbie/.bin/np";
connected_message_on_startup = "no"; connected_message_on_startup = "no";
playlist_separate_albums = "no"; playlist_separate_albums = "no";
allow_for_physical_item_deletion = "no"; allow_for_physical_item_deletion = "no";

View file

@ -1,5 +1,6 @@
{ config, inputs, lib, pkgs, ... }: { config, inputs, lib, pkgs, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.neovim; cfg = config.modules.programs.neovim;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -50,9 +51,7 @@ in {
nixvimInjections = true; nixvimInjections = true;
incrementalSelection.enable = true; incrementalSelection.enable = true;
}; };
treesitter-context = { treesitter-context = { enable = true; };
enable = true;
};
coq-nvim = { coq-nvim = {
enable = true; enable = true;
installArtifacts = true; installArtifacts = true;
@ -62,9 +61,7 @@ in {
completion.always = false; completion.always = false;
}; };
}; };
neo-tree = { neo-tree = { enable = true; };
enable = true;
};
# TODO laytan/cloak.nvim # TODO laytan/cloak.nvim
lsp = { lsp = {
enable = true; enable = true;
@ -121,7 +118,7 @@ in {
rust-tools = { rust-tools = {
enable = true; enable = true;
crateGraph = { crateGraph = {
enabledGraphvizBackends = ["png" "svg"]; enabledGraphvizBackends = [ "png" "svg" ];
backend = "x11"; backend = "x11";
}; };
inlayHints = { inlayHints = {
@ -163,10 +160,7 @@ in {
}; };
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [ zen-mode-nvim lazygit-nvim ];
zen-mode-nvim
lazygit-nvim
];
keymaps = [ keymaps = [
{ {

View file

@ -1,8 +1,6 @@
{ { config, lib, ... }:
config, with lib;
lib, let
...
}: with lib; let
cfg = config.modules.programs.newsboat; cfg = config.modules.programs.newsboat;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
@ -53,11 +51,13 @@ in {
} }
{ {
title = "Veronica Explains"; title = "Veronica Explains";
url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCMiyV_Ib77XLpzHPQH_q0qQ"; url =
"https://www.youtube.com/feeds/videos.xml?channel_id=UCMiyV_Ib77XLpzHPQH_q0qQ";
} }
{ {
title = "Mental Outlaw"; title = "Mental Outlaw";
url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA"; url =
"https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA";
} }
{ {
title = "Hacker News"; title = "Hacker News";

View file

@ -1,11 +1,10 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; let with lib;
let
cfg = config.modules.programs.yazi; cfg = config.modules.programs.yazi;
username = config.modules.other.system.username; username = config.modules.other.system.username;
in { in {
options.modules.programs.yazi = { options.modules.programs.yazi = { enable = mkEnableOption "yazi"; };
enable = mkEnableOption "yazi";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -1,4 +1,4 @@
_:{ _: {
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = { grub = {

View file

@ -1,6 +1,5 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let username = config.modules.other.system.username;
username = config.modules.other.system.username;
in { in {
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;

View file

@ -1,5 +1,4 @@
{ config, lib, pkgs, ...}: { config, lib, pkgs, ... }: {
{
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;

View file

@ -1,8 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
let let username = config.modules.other.system.username;
username = config.modules.other.system.username;
in { in {
networking = { networking = {
networkmanager = { networkmanager = {
enable = true; enable = true;
dns = "systemd-resolved"; dns = "systemd-resolved";
@ -10,10 +9,7 @@ networking = {
}; };
services.resolved = { services.resolved = {
enable = true; enable = true;
fallbackDns = [ fallbackDns = [ "9.9.9.9" "2620::fe::fe" ];
"9.9.9.9"
"2620::fe::fe"
];
}; };
users.users.${username}.extraGroups = [ "networkmanager" ]; users.users.${username}.extraGroups = [ "networkmanager" ];
} }

View file

@ -1,4 +1,3 @@
{ inputs, lib, ...}: { inputs, lib, ... }: {
{ nix.registry = lib.mapAttrs (_: v: { flake = v; }) inputs;
nix.registry = lib.mapAttrs (_: v: {flake = v; }) inputs;
} }

View file

@ -1,6 +1 @@
{ { self, ... }: { environment.etc."current-flake".source = self; }
self,
...
}: {
environment.etc."current-flake".source = self;
}

View file

@ -1,10 +1,7 @@
{ pkgs, ... }: { pkgs, ... }: {
{
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
material-design-icons material-design-icons
(nerdfonts.override { (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
fonts = [ "JetBrainsMono"];
})
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-cjk-serif noto-fonts-cjk-serif

View file

@ -1,13 +1,11 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; with lib; {
{
options.modules.other.system.monitors = mkOption { options.modules.other.system.monitors = mkOption {
description = " description = "\n List of monitors to use\n ";
List of monitors to use default = [ ];
"; type = with types;
default = []; types.listOf (submodule {
type = with types; types.listOf (submodule {
options = { options = {
name = mkOption { name = mkOption {
type = types.str; type = types.str;

View file

@ -1,16 +1,17 @@
{ inputs, outputs, ... }: { inputs, outputs, ... }:
let let
add_nur = self: super: { add_nur = self: super: {
# nur-no-pkgs = import inputs.nur-no-pkgs { pkgs = inputs.nixpkgs.legacyPackages.${profile-config.system}; nurpkgs = inputs.nixpkgs.legacyPackages.${profile-config.system}; }; # nur-no-pkgs = import inputs.nur-no-pkgs { pkgs = inputs.nixpkgs.legacyPackages.${profile-config.system}; nurpkgs = inputs.nixpkgs.legacyPackages.${profile-config.system}; };
nur = import inputs.nur { nur = import inputs.nur {
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; }; # .legacyPackages.${profile-config.system}; pkgs = import inputs.nixpkgs {
nurpkgs = import inputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; }; #.legacyPackages.${profile-config.system}; system = "x86_64-linux";
config.allowUnfree = true;
}; # .legacyPackages.${profile-config.system};
nurpkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
}; # .legacyPackages.${profile-config.system};
}; };
}; };
in in { nixpkgs.overlays = [ add_nur ]; }
{
nixpkgs.overlays = [
add_nur
];
}