formating

This commit is contained in:
Don Harper 2025-09-24 13:39:24 -05:00
parent 4dbb70199a
commit a8df20b4cb
2 changed files with 146 additions and 151 deletions

View file

@ -38,17 +38,9 @@
nvf.inputs.nixpkgs.follows = "nixpkgs"; nvf.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = inputs @ { outputs = inputs@{ self, nixpkgs, nix, nixpkgs-stable, nixos-hardware
self, , home-manager, catppuccin, colmena, ... }:
nixpkgs, let
nix,
nixpkgs-stable,
nixos-hardware,
home-manager,
catppuccin,
colmena,
...
}: let
inherit (self) outputs; inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib; lib = nixpkgs.lib // home-manager.lib;
in { in {
@ -56,11 +48,11 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
config.allowUnfree = true; config.allowUnfree = true;
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) ["widevine-cdm"]; builtins.elem (lib.getName pkg) [ "widevine-cdm" ];
colmena = { colmena = {
meta = { meta = {
nixpkgs = import nixpkgs {system = "x86_64-linux";}; nixpkgs = import nixpkgs { system = "x86_64-linux"; };
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
# ace = import ./hosts/ace/colmena.nix; # Acer C720 # ace = import ./hosts/ace/colmena.nix; # Acer C720
book = import ./hosts/book/colmena.nix; # Google Pixelbook 2017 w/ nvme. book = import ./hosts/book/colmena.nix; # Google Pixelbook 2017 w/ nvme.
@ -78,47 +70,47 @@
nixosConfigurations = { nixosConfigurations = {
# clients # clients
ace = lib.nixosSystem { ace = lib.nixosSystem {
modules = [./hosts/ace]; modules = [ ./hosts/ace ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
dragon = lib.nixosSystem { dragon = lib.nixosSystem {
modules = [./hosts/dragon]; modules = [ ./hosts/dragon ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
book = lib.nixosSystem { book = lib.nixosSystem {
modules = [./hosts/book]; modules = [ ./hosts/book ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
loki = lib.nixosSystem { loki = lib.nixosSystem {
modules = [./hosts/loki]; modules = [ ./hosts/loki ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
pocket2 = lib.nixosSystem { pocket2 = lib.nixosSystem {
modules = [./hosts/pocket2]; modules = [ ./hosts/pocket2 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
smaug = lib.nixosSystem { smaug = lib.nixosSystem {
modules = [./hosts/smaug]; modules = [ ./hosts/smaug ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
t2 = lib.nixosSystem { t2 = lib.nixosSystem {
modules = [./hosts/t2]; modules = [ ./hosts/t2 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
pi1 = lib.nixosSystem { pi1 = lib.nixosSystem {
modules = [./hosts/pi1]; modules = [ ./hosts/pi1 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
# servers # servers
display = lib.nixosSystem { display = lib.nixosSystem {
modules = [./hosts/display]; modules = [ ./hosts/display ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
fred = lib.nixosSystem { fred = lib.nixosSystem {
modules = [./hosts/fred]; modules = [ ./hosts/fred ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
vm = lib.nixosSystem { vm = lib.nixosSystem {
modules = [ modules = [
@ -126,31 +118,31 @@
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix" "${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
./hosts/vm ./hosts/vm
]; ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
harper2 = lib.nixosSystem { harper2 = lib.nixosSystem {
modules = [./hosts/harper2]; modules = [ ./hosts/harper2 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
harper = lib.nixosSystem { harper = lib.nixosSystem {
modules = [./hosts/harper]; modules = [ ./hosts/harper ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
nuwww = lib.nixosSystem { nuwww = lib.nixosSystem {
modules = [./hosts/nuwww]; modules = [ ./hosts/nuwww ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
pihole = lib.nixosSystem { pihole = lib.nixosSystem {
modules = [./hosts/pihole]; modules = [ ./hosts/pihole ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
www2 = lib.nixosSystem { www2 = lib.nixosSystem {
modules = [./hosts/www2]; modules = [ ./hosts/www2 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
w1 = lib.nixosSystem { w1 = lib.nixosSystem {
modules = [./hosts/w1]; modules = [ ./hosts/w1 ];
specialArgs = {inherit inputs outputs;}; specialArgs = { inherit inputs outputs; };
}; };
# w2 = lib.nixosSystem { # w2 = lib.nixosSystem {
# modules = [./hosts/w2]; # modules = [./hosts/w2];

View file

@ -1,8 +1,14 @@
{ pkgs, inputs, config, lib, ... }: {
with lib; pkgs,
let cfg = config.roles.gui; inputs,
config,
lib,
...
}:
with lib; let
cfg = config.roles.gui;
in { in {
options.roles.gui = { enable = mkEnableOption "roles gui"; }; options.roles.gui = {enable = mkEnableOption "roles gui";};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.don = { home-manager.users.don = {
imports = [ imports = [
@ -17,10 +23,10 @@ in {
./sway.nix ./sway.nix
./terminals.nix ./terminals.nix
]; ];
fonts = { fontconfig = { enable = true; }; }; fonts = {fontconfig = {enable = true;};};
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
qutebrowser = prev.qutebrowser.override { enableWideVine = true; }; qutebrowser = prev.qutebrowser.override {enableWideVine = true;};
}) })
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -31,7 +37,7 @@ in {
inputs.bzmenu.packages.${pkgs.system}.default inputs.bzmenu.packages.${pkgs.system}.default
at-spi2-core at-spi2-core
blueberry blueberry
calibre # calibre # FIXME - TODO - Failing to build 2025.09.23
clipman clipman
darktable darktable
# element-desktop # element-desktop
@ -75,32 +81,29 @@ in {
mimeApps = { mimeApps = {
enable = true; enable = true;
associations.added = { associations.added = {
"application/octet-stream" = [ "nvim-qt.desktop" ]; "application/octet-stream" = ["nvim-qt.desktop"];
"application/pdf" = [ "application/pdf" = [
"org.pwmt.zathura-pdf-mupdf.desktop;qpdfview.desktop;org.gnome.Evince.desktop" "org.pwmt.zathura-pdf-mupdf.desktop;qpdfview.desktop;org.gnome.Evince.desktop"
]; ];
"image/jpeg" = [ "imv.desktop;darktable.desktop;gimp.desktop" ]; "image/jpeg" = ["imv.desktop;darktable.desktop;gimp.desktop"];
"image/png" = [ "imv.desktop;darktable.desktop;gimp.desktop" ]; "image/png" = ["imv.desktop;darktable.desktop;gimp.desktop"];
"image/x-adobe-dng" = [ "imv.desktop" ]; "image/x-adobe-dng" = ["imv.desktop"];
"inode/directory" = [ "thunar.desktop" ]; "inode/directory" = ["thunar.desktop"];
"text/plain" = [ "nvim-qt.desktop" ]; "text/plain" = ["nvim-qt.desktop"];
"x-scheme-handler/pdf" = [ "x-scheme-handler/pdf" = [
"org.pwmt.zathura-pdf-mupdf.desktop;qpdfview.desktop;org.gnome.Evince.desktop" "org.pwmt.zathura-pdf-mupdf.desktop;qpdfview.desktop;org.gnome.Evince.desktop"
]; ];
}; };
defaultApplications = { defaultApplications = {
"inode/directory" = [ "thunar.desktop" ]; "inode/directory" = ["thunar.desktop"];
"text/html" = [ "org.qutebrowser.qutebrowser.desktop" ]; "text/html" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/about" = "x-scheme-handler/about" = ["org.qutebrowser.qutebrowser.desktop"];
[ "org.qutebrowser.qutebrowser.desktop" ]; "x-scheme-handler/http" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/http" = [ "org.qutebrowser.qutebrowser.desktop" ]; "x-scheme-handler/https" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/https" = "x-scheme-handler/pdf" = ["myweb.desktop"];
[ "org.qutebrowser.qutebrowser.desktop" ]; "x-scheme-handler/unknown" = ["org.qutebrowser.qutebrowser.desktop"];
"x-scheme-handler/pdf" = [ "myweb.desktop" ]; "application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"];
"x-scheme-handler/unknown" = "x-scheme-handler/mailto" = ["neomutt.desktop"];
[ "org.qutebrowser.qutebrowser.desktop" ];
"application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ];
"x-scheme-handler/mailto" = [ "neomutt.desktop" ];
}; };
}; };
desktopEntries = { desktopEntries = {
@ -126,7 +129,7 @@ in {
terminal = false; terminal = false;
name = "myweb"; name = "myweb";
exec = "/home/don/bin/myweb %u"; exec = "/home/don/bin/myweb %u";
mimeType = [ "x-scheme-handler/pdf" ]; mimeType = ["x-scheme-handler/pdf"];
}; };
cooking-notebook = { cooking-notebook = {
type = "Application"; type = "Application";
@ -141,8 +144,8 @@ in {
type = "Application"; type = "Application";
icon = "obsidian"; icon = "obsidian";
comment = "Obsidian"; comment = "Obsidian";
mimeType = [ "x-scheme-handler/obsidian" ]; mimeType = ["x-scheme-handler/obsidian"];
categories = [ "Office" ]; categories = ["Office"];
}; };
journal = { journal = {
name = "Journal"; name = "Journal";
@ -151,11 +154,11 @@ in {
type = "Application"; type = "Application";
icon = "obsidian"; icon = "obsidian";
comment = "Obsidian Journal"; comment = "Obsidian Journal";
mimeType = [ "x-scheme-handler/obsidian" ]; mimeType = ["x-scheme-handler/obsidian"];
categories = [ "Office" ]; categories = ["Office"];
}; };
}; };
configFile = { "shikane/config.toml".source = files/shikane.toml; }; configFile = {"shikane/config.toml".source = files/shikane.toml;};
}; };
}; };
}; };