diff --git a/configuration.nix b/configuration.nix index 373e1d4..1fc7058 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,8 +18,12 @@ #grub }; kernelModules = [ "i2c-dev" "i2c-piix4" ]; + extraModulePackages = [ + # config.boot.kernelPackages.v4l2loopback + ]; }; + networking = { hostName = "nixos"; networkmanager.enable = true; @@ -45,12 +49,15 @@ }; services = { + gvfs.enable = true; + # Enable rgb controller hardware.openrgb.enable = true; # Enable CUPS to print documents. - # printing.enable = true; - + printing.enable = true; + # I have a hp envy 4510 + printing.drivers = [ pkgs.hplip ]; # Enable sound with pipewire. pipewire = { enable = true; @@ -113,8 +120,8 @@ #----=[ Fonts ]=----# fonts = { - enableDefaultFonts = true; - fonts = with pkgs; [ + enableDefaultPackages = true; + packages = with pkgs; [ noto-fonts noto-fonts-cjk @@ -125,8 +132,6 @@ # }; }; - - users.users.able = { openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE8hxhhfB2zomqQLw/o3MaFxHIhE9cfmuW55npfwVtOJ able@nixos" @@ -138,68 +143,80 @@ "networkmanager" "wheel" "input" + "adbusers" ]; }; home-manager.users.able = { pkgs, ... }: { - nixpkgs.config.allowUnfree = true; - nixpkgs.config.permittedInsecurePackages = [ - "electron-12.2.3" - ]; + nixpkgs.config = { + allowUnfree = true; + permittedInsecurePackages = [ + # "electron-12.2.3" + "electron-19.1.9" + "electron-24.8.6" + ]; + }; # "https://rycee.gitlab.io/home-manager/options.html" # opt-dconf.settings imports = [ ./dconf.nix ]; - home.stateVersion = "22.11"; - home.packages = with pkgs; [ - adoptopenjdk-bin - bottles - cataclysm-dda - cinnamon.nemo + home = { + stateVersion = "22.11"; + packages = with pkgs; [ + # Used for sidequest + android-tools + adoptopenjdk-bin + appimage-run - dconf2nix - discord + bottles - flameshot - firefox + cataclysm-dda + cinnamon.nemo - gimp - grapejuice + dconf2nix + discord - gzdoom - enyo-launcher - etcher - keepassxc + flameshot + firefox - nixfmt + gimp + grapejuice - prismlauncher + gzdoom + enyo-launcher + etcher + keepassxc + nixfmt - llvmPackages_16.clangUseLLVM - lutris + prismlauncher - obs-studio - obsidian - openrgb - openmw - OVMFFull + llvmPackages_16.clangUseLLVM + lutris - qemu_full - rustup + obs-studio + obsidian + openrgb + openmw + OVMFFull - shattered-pixel-dungeon - steam - soundux - spotify + qemu_full + rustup - winePackages.full - unityhub + shattered-pixel-dungeon + sidequest + steam + soundux + spotify - via - vintagestory - vtm # MonoTTY VTM - ]; + winePackages.full + unityhub + via + vintagestory + vtm # MonoTTY VTM + ]; + + }; programs.bash = { enable = true; @@ -356,6 +373,7 @@ enable = true; userName = "able"; userEmail = "abl3theabove@gmail.com"; + lfs.enable = true; signing = { key = ""; signByDefault = false; @@ -366,30 +384,27 @@ # Allow unfree packages nixpkgs.config.allowUnfree = true; + programs.adb.enable = true; + # List packages installed in system profile. To search, run: # $ nix search wget services.udev.extraRules = '' SUBSYSTEM=="usb", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", MODE="0666" + SUBSYSTEM=="usb", ATTR{idVendor}=="2833", ATTR{idProduct}=="0186", MODE="0666" KERNEL=="hidraw*", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", MODE="0666" ''; - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: xdg.mime.defaultApplications = { "application/pdf" = "firefox.desktop"; "inode/directory" = [ "nemo.desktop" "code.desktop" ]; }; - services.gvfs.enable = true; - environment.systemPackages = [ pkgs.cifs-utils ]; + environment.systemPackages = with pkgs; [ + linuxKernel.packages.linux_6_1.v4l2loopback + cifs-utils + ]; + fileSystems."/home/able/Documents/media" = { device = "//10.0.0.28/media/"; fsType = "cifs"; diff --git a/dconf.nix b/dconf.nix index 802ab15..d87131a 100644 --- a/dconf.nix +++ b/dconf.nix @@ -19,6 +19,14 @@ with lib.hm.gvariant; startup-view = "page_list"; }; + "org/blueman/general" = { + window-properties = [ 510 350 1477 188 ]; + }; + + "org/blueman/plugins/powermanager" = { + auto-power-on = "@mb false"; + }; + "org/cinnamon" = { enabled-applets = [ "panel1:left:0:menu@cinnamon.org:0" "panel1:left:1:separator@cinnamon.org:1" "panel1:left:6:grouped-window-list@cinnamon.org:2" "panel1:right:5:systray@cinnamon.org:3" "panel1:right:6:xapp-status@cinnamon.org:4" "panel1:right:7:notifications@cinnamon.org:5" "panel1:right:8:printers@cinnamon.org:6" "panel1:right:9:removable-drives@cinnamon.org:7" "panel1:right:10:keyboard@cinnamon.org:8" "panel1:right:11:favorites@cinnamon.org:9" "panel1:right:12:network@cinnamon.org:10" "panel1:right:13:sound@cinnamon.org:11" "panel1:right:14:power@cinnamon.org:12" "panel1:right:15:calendar@cinnamon.org:13" "panel1:right:16:cornerbar@cinnamon.org:14" "panel1:left:2:kilotime@ablecorp.us:15" "panel1:left:3:separator@cinnamon.org:16" "panel1:left:4:betterlock:17" "panel1:right:1:separator@cinnamon.org:18" "panel1:left:5:separator@cinnamon.org:19" ]; next-applet-id = 20; @@ -67,11 +75,14 @@ with lib.hm.gvariant; }; "org/cinnamon/desktop/keybindings/media-keys" = { - screenshot = [ ]; + screenshot = []; }; "org/cinnamon/desktop/media-handling" = { autorun-never = false; + autorun-x-content-ignore = []; + autorun-x-content-open-folder = []; + autorun-x-content-start-app = [ "x-content/unix-software" ]; }; "org/cinnamon/desktop/notifications" = { @@ -101,7 +112,7 @@ with lib.hm.gvariant; "org/cinnamon/desktop/wm/preferences" = { num-workspaces = 4; titlebar-font = "Noto Sans 10"; - workspace-names = [ ]; + workspace-names = []; }; "org/cinnamon/settings-daemon/peripherals/keyboard" = { @@ -144,6 +155,25 @@ with lib.hm.gvariant; migrated = true; }; + "org/gnome/file-roller/dialogs/extract" = { + recreate-folders = true; + skip-newer = false; + }; + + "org/gnome/file-roller/listing" = { + list-mode = "as-folder"; + name-column-width = 313; + show-path = false; + sort-method = "name"; + sort-type = "ascending"; + }; + + "org/gnome/file-roller/ui" = { + sidebar-width = 200; + window-height = 480; + window-width = 909; + }; + "org/gnome/pomodoro/preferences" = { pomodoro-duration = 1500.0; }; @@ -166,7 +196,7 @@ with lib.hm.gvariant; "org/gtk/gtk4/settings/file-chooser" = { date-format = "regular"; location-mode = "path-bar"; - show-hidden = false; + show-hidden = true; show-size-column = true; show-type-column = true; sidebar-width = 140; @@ -175,19 +205,19 @@ with lib.hm.gvariant; sort-order = "ascending"; type-format = "category"; view-type = "list"; - window-size = mkTuple [ 815 385 ]; + window-size = mkTuple [ 815 771 ]; }; "org/gtk/settings/file-chooser" = { date-format = "regular"; location-mode = "path-bar"; - show-hidden = false; + show-hidden = true; show-size-column = true; show-type-column = true; - sidebar-width = 150; - sort-column = "name"; + sidebar-width = 152; + sort-column = "modified"; sort-directories-first = true; - sort-order = "ascending"; + sort-order = "descending"; type-format = "category"; window-position = mkTuple [ 1612 40 ]; window-size = mkTuple [ 1096 823 ]; @@ -195,6 +225,7 @@ with lib.hm.gvariant; "org/nemo/desktop" = { font = "Noto Sans 10"; + volumes-visible = false; }; "org/nemo/preferences" = { @@ -204,8 +235,8 @@ with lib.hm.gvariant; "org/nemo/window-state" = { bookmarks-expanded = true; - geometry = "800x550+3015+86"; - maximized = false; + geometry = "800x550+1490+90"; + maximized = true; network-expanded = true; sidebar-bookmark-breakpoint = 0; sidebar-width = 249; @@ -236,14 +267,14 @@ with lib.hm.gvariant; "org/x/pix/browser" = { filterbar-visible = true; - maximized = false; + maximized = true; properties-visible = true; show-thumbnails = true; sort-inverse = false; sort-type = "file::mtime"; - startup-current-file = "file://~/Pictures/Screenshot%20from%202023-06-11%2018-41-42.png"; - startup-location = "file://~/Pictures"; - thumbnail-list-size = 126; + startup-current-file = "file://~/Documents/media/Art/MIT/Rei/evildice.GIF"; + startup-location = "file://~/Documents/media/Art/MIT/Rei"; + thumbnail-list-size = 128; viewer-sidebar = "hidden"; }; @@ -269,6 +300,10 @@ with lib.hm.gvariant; subtitle-encoding = "UTF-8"; }; + "org/x/reader/default" = { + window-ratio = mkTuple [ 2.352941 1.039141 ]; + }; + "org/x/viewer/window" = { maximized = true; };