From 8230b7ce9c2cb6e088f14d565fa9606f817abdf2 Mon Sep 17 00:00:00 2001 From: able Date: Sun, 17 Sep 2023 15:38:47 -0500 Subject: [PATCH] backup --- configuration.nix | 80 +++++++++++++--- dconf.dconf | 230 ++++++++++++++++++++++++++++++++++++++++++++++ dconf.nix | 166 +++++++++++++++++++++++++++++---- 3 files changed, 444 insertions(+), 32 deletions(-) create mode 100644 dconf.dconf diff --git a/configuration.nix b/configuration.nix index d04a7e1..8d0d512 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,7 +1,10 @@ -{ config, pkgs, ... }: { +{ config +, pkgs +, ... +}: { + imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix + ./hardware-configuration.nix # Include the results of the hardware scan. ]; @@ -101,6 +104,28 @@ security.rtkit.enable = true; sound.enable = true; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + }; + + + #----=[ Fonts ]=----# + fonts = { + enableDefaultFonts = true; + fonts = with pkgs; [ + noto-fonts + noto-fonts-cjk + + ]; + + # fontconfig = { + # defaultFonts = { }; + # }; + }; + + users.users.able = { openssh.authorizedKeys.keys = [ @@ -109,16 +134,27 @@ isNormalUser = true; description = "able"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ + "networkmanager" + "wheel" + "input" + ]; }; home-manager.users.able = { pkgs, ... }: { nixpkgs.config.allowUnfree = true; + nixpkgs.config.permittedInsecurePackages = [ + "electron-12.2.3" + ]; + # "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 dconf2nix @@ -132,6 +168,7 @@ gzdoom enyo-launcher + etcher nixfmt @@ -139,16 +176,26 @@ prismlauncher llvmPackages_16.clangUseLLVM + lutris obs-studio + obsidian openrgb + openmw OVMFFull qemu_full rustup + + shattered-pixel-dungeon steam soundux spotify + + winePackages.full + unityhub + + vtm # MonoTTY VTM ]; @@ -159,9 +206,10 @@ rebuild = "sudo nixos-rebuild switch"; # Git commands gcl = "git clone"; - genpass = "strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo"; + kilotime = "printf '%sK%sS\n' $(( $(($(date -d 'now' '+%s') - $(date -d 'today 00:00' '+%s'))) / 1000 )) $(( $(($(date -d 'now' '+%s') - $(date -d 'today 00:00' '+%s'))) % 1000 ))"; + ################# # List Variants # ################# @@ -171,7 +219,6 @@ }; initExtra = '' - PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND" up(){ local d="" limit=$1 @@ -204,6 +251,9 @@ PS1="$LINE_ONE$LINE_TWO" PS2="$PROMPT" + + + ##################### # History managment # ##################### @@ -234,10 +284,14 @@ }; }; + "editor.minimap.enabled" = false; "[nix]".editor.tabSize = 2; - git.autofetch = true; + git = { + autofetch = true; + enableSmartCommit = true; + }; gitlens.showWelcomeOnInstall = false; explorer.confirmDelete = false; @@ -309,11 +363,13 @@ nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget - environment.systemPackages = with pkgs; - [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - ]; + services.udev.extraRules = '' + SUBSYSTEM=="usb", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", 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. diff --git a/dconf.dconf b/dconf.dconf new file mode 100644 index 0000000..27f81bd --- /dev/null +++ b/dconf.dconf @@ -0,0 +1,230 @@ +[ca/desrt/dconf-editor] +saved-pathbar-path='/org/gnome/file-roller/' +saved-view='/org/gnome/' +show-warning=false +window-height=500 +window-is-maximized=false +window-width=540 + +[com/usebottles/bottles] +show-sandbox-warning=false +startup-view='page_list' + +[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 +panel-edit-mode=false +panel-zone-symbolic-icon-sizes='[{"panelId": 1, "left": 28, "center": 28, "right": 16}]' +panels-enabled=['1:0:top'] +panels-height=['1:40'] + +[org/cinnamon/desktop/applications/calculator] +exec='gnome-calculator' + +[org/cinnamon/desktop/applications/terminal] +exec='gnome-terminal' +exec-arg='--' + +[org/cinnamon/desktop/background] +picture-uri='file:///home/able/Pictures/Condesce_HomeStuck.jpg' + +[org/cinnamon/desktop/background/slideshow] +delay=15 +image-source='directory:///home/able/Pictures' + +[org/cinnamon/desktop/interface] +cursor-blink-time=1200 +cursor-size=24 +cursor-theme='GoogleDot-Black' +font-name='Noto Sans 10' +gtk-theme='Adwaita-dark' +icon-theme='HighContrast' +text-scaling-factor=1.0 + +[org/cinnamon/desktop/keybindings] +custom-list=['__dummy__', 'custom0'] + +[org/cinnamon/desktop/keybindings/custom-keybindings/custom0] +binding=['Print'] +command='flameshot gui' +name='screenshot' + +[org/cinnamon/desktop/keybindings/media-keys] +screenshot=@as [] + +[org/cinnamon/desktop/media-handling] +autorun-never=false + +[org/cinnamon/desktop/notifications] +notification-duration=4 + +[org/cinnamon/desktop/peripherals/keyboard] +delay=uint32 500 +numlock-state=false +repeat-interval=uint32 30 + +[org/cinnamon/desktop/peripherals/mouse] +double-click=400 +drag-threshold=8 +speed=0.0 + +[org/cinnamon/desktop/peripherals/touchpad] +speed=0.0 + +[org/cinnamon/desktop/sound] +event-sounds=false + +[org/cinnamon/desktop/wm/preferences] +num-workspaces=4 +titlebar-font='Noto Sans 10' +workspace-names=@as [] + +[org/cinnamon/settings-daemon/peripherals/keyboard] +numlock-state='off' + +[org/cinnamon/theme] +name='Linux Mint' + +[org/gnome/Disks] +image-dir-uri='file:///home/able/Documents' + +[org/gnome/Geary] +migrated-config=true + +[org/gnome/calculator] +accuracy=9 +angle-units='degrees' +base=10 +button-mode='basic' +number-format='automatic' +show-thousands=false +show-zeroes=false +source-currency='' +source-units='degree' +target-currency='' +target-units='radian' +word-size=64 + +[org/gnome/desktop/interface] +document-font-name='Noto Sans 11' +monospace-font-name='Noto Sans Mono 10' + +[org/gnome/evolution-data-server] +migrated=true + +[org/gnome/pomodoro/preferences] +pomodoro-duration=1500.0 + +[org/gnome/pomodoro/state] +timer-date='2023-09-13T10:41:52+0000' +timer-elapsed=0.0 +timer-paused=false +timer-score=0.0 +timer-state='null' +timer-state-date='2023-09-13T10:41:52+0000' +timer-state-duration=0.0 + +[org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9] +font='Monospace 12' +use-system-font=false + +[org/gtk/gtk4/settings/file-chooser] +date-format='regular' +location-mode='path-bar' +show-hidden=false +show-size-column=true +show-type-column=true +sidebar-width=140 +sort-column='name' +sort-directories-first=false +sort-order='ascending' +type-format='category' +view-type='list' +window-size=(815, 385) + +[org/gtk/settings/file-chooser] +date-format='regular' +location-mode='path-bar' +show-hidden=false +show-size-column=true +show-type-column=true +sidebar-width=150 +sort-column='name' +sort-directories-first=true +sort-order='ascending' +type-format='category' +window-position=(1612, 40) +window-size=(1096, 823) + +[org/nemo/desktop] +font='Noto Sans 10' + +[org/nemo/preferences] +last-server-connect-method=3 +show-hidden-files=true + +[org/nemo/window-state] +bookmarks-expanded=true +geometry='800x550+3015+86' +maximized=false +network-expanded=true +sidebar-bookmark-breakpoint=0 +sidebar-width=249 +start-with-sidebar=true + +[org/onboard] +schema-version='2.3' +system-theme-associations="{'HighContrast': 'HighContrast', 'HighContrastInverse': 'HighContrastInverse', 'LowContrast': 'LowContrast', 'ContrastHighInverse': 'HighContrastInverse', 'Default': ''}" +use-system-defaults=false + +[org/x/editor/plugins] +active-plugins=['docinfo', 'modelines', 'sort', 'filebrowser', 'spell', 'time'] + +[org/x/editor/preferences/ui] +statusbar-visible=true + +[org/x/editor/state/window] +bottom-panel-size=140 +side-panel-active-page=827629879 +side-panel-size=200 +size=(650, 500) +state=87168 + +[org/x/pix/browser] +filterbar-visible=true +maximized=false +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 +viewer-sidebar='hidden' + +[org/x/pix/data-migration] +catalogs-2-10=true + +[org/x/pix/general] +active-extensions=['23hq', 'bookmarks', 'burn_disc', 'catalogs', 'change_date', 'comments', 'contact_sheet', 'convert_format', 'desktop_background', 'edit_metadata', 'exiv2_tools', 'facebook', 'file_manager', 'file_tools', 'find_duplicates', 'flicker', 'gstreamer_tools', 'gstreamer_utils', 'image_print', 'image_rotation', 'image_viewer', 'importer', 'jpeg_utils', 'list_tools', 'oauth', 'photo_importer', 'photobucket', 'picasaweb', 'raw_files', 'red_eye_removal', 'rename_series', 'resize_images', 'search', 'selections', 'slideshow', 'webalbums'] + +[org/x/pix/resize-images] +height=100 +keep-aspect-ratio=false +mime-type='' +unit='percentage' +width=29 + +[org/x/player] +active-plugins=['screensaver', 'dbusservice', 'autoload-subtitles', 'vimeo', 'recent', 'opensubtitles', 'chapters', 'media_player_keys', 'skipto', 'movie-properties', 'screenshot', 'apple-trailers'] +debug=false +subtitle-encoding='UTF-8' + +[org/x/viewer/window] +maximized=true + +[org/x/warpinator/preferences] +ask-for-send-permission=true +autostart=false +connect-id='NIXOS-D6BA323433A716DDB295' +no-overwrite=true diff --git a/dconf.nix b/dconf.nix index bbb5f11..802ab15 100644 --- a/dconf.nix +++ b/dconf.nix @@ -5,17 +5,55 @@ with lib.hm.gvariant; { dconf.settings = { + "ca/desrt/dconf-editor" = { + saved-pathbar-path = "/org/gnome/file-roller/"; + saved-view = "/org/gnome/"; + show-warning = false; + window-height = 500; + window-is-maximized = false; + window-width = 540; + }; + + "com/usebottles/bottles" = { + show-sandbox-warning = false; + startup-view = "page_list"; + }; + "org/cinnamon" = { - enabled-applets = [ "panel1:left:0:menu@cinnamon.org:0" "panel1:left:1:separator@cinnamon.org:1" "panel1:left:2:grouped-window-list@cinnamon.org:2" "panel1:right:0:systray@cinnamon.org:3" "panel1:right:1:xapp-status@cinnamon.org:4" "panel1:right:2:notifications@cinnamon.org:5" "panel1:right:3:printers@cinnamon.org:6" "panel1:right:4:removable-drives@cinnamon.org:7" "panel1:right:5:keyboard@cinnamon.org:8" "panel1:right:6:favorites@cinnamon.org:9" "panel1:right:7:network@cinnamon.org:10" "panel1:right:8:sound@cinnamon.org:11" "panel1:right:9:power@cinnamon.org:12" "panel1:right:10:calendar@cinnamon.org:13" "panel1:right:11:cornerbar@cinnamon.org:14" ]; - next-applet-id = 15; + 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; + panel-edit-mode = false; + panel-zone-symbolic-icon-sizes = "[{\"panelId\": 1, \"left\": 28, \"center\": 28, \"right\": 16}]"; panels-enabled = [ "1:0:top" ]; + panels-height = [ "1:40" ]; + }; + + "org/cinnamon/desktop/applications/calculator" = { + exec = "gnome-calculator"; + }; + + "org/cinnamon/desktop/applications/terminal" = { + exec = "gnome-terminal"; + exec-arg = "--"; + }; + + "org/cinnamon/desktop/background" = { + picture-uri = "file:///home/able/Pictures/Condesce_HomeStuck.jpg"; + }; + + "org/cinnamon/desktop/background/slideshow" = { + delay = 15; + image-source = "directory:///home/able/Pictures"; }; "org/cinnamon/desktop/interface" = { cursor-blink-time = 1200; + cursor-size = 24; cursor-theme = "GoogleDot-Black"; + font-name = "Noto Sans 10"; gtk-theme = "Adwaita-dark"; icon-theme = "HighContrast"; + text-scaling-factor = 1.0; }; "org/cinnamon/desktop/keybindings" = { @@ -29,18 +67,43 @@ with lib.hm.gvariant; }; "org/cinnamon/desktop/keybindings/media-keys" = { - screenshot = []; + screenshot = [ ]; + }; + + "org/cinnamon/desktop/media-handling" = { + autorun-never = false; + }; + + "org/cinnamon/desktop/notifications" = { + notification-duration = 4; }; "org/cinnamon/desktop/peripherals/keyboard" = { delay = mkUint32 500; + numlock-state = false; repeat-interval = mkUint32 30; }; + "org/cinnamon/desktop/peripherals/mouse" = { + double-click = 400; + drag-threshold = 8; + speed = 0.0; + }; + + "org/cinnamon/desktop/peripherals/touchpad" = { + speed = 0.0; + }; + "org/cinnamon/desktop/sound" = { event-sounds = false; }; + "org/cinnamon/desktop/wm/preferences" = { + num-workspaces = 4; + titlebar-font = "Noto Sans 10"; + workspace-names = [ ]; + }; + "org/cinnamon/settings-daemon/peripherals/keyboard" = { numlock-state = "off"; }; @@ -49,27 +112,70 @@ with lib.hm.gvariant; name = "Linux Mint"; }; + "org/gnome/Disks" = { + image-dir-uri = "file:///home/able/Documents"; + }; + + "org/gnome/Geary" = { + migrated-config = true; + }; + + "org/gnome/calculator" = { + accuracy = 9; + angle-units = "degrees"; + base = 10; + button-mode = "basic"; + number-format = "automatic"; + show-thousands = false; + show-zeroes = false; + source-currency = ""; + source-units = "degree"; + target-currency = ""; + target-units = "radian"; + word-size = 64; + }; + + "org/gnome/desktop/interface" = { + document-font-name = "Noto Sans 11"; + monospace-font-name = "Noto Sans Mono 10"; + }; + "org/gnome/evolution-data-server" = { migrated = true; }; - "org/gnome/file-roller/dialogs/extract" = { - recreate-folders = true; - skip-newer = false; + "org/gnome/pomodoro/preferences" = { + pomodoro-duration = 1500.0; }; - "org/gnome/file-roller/listing" = { - list-mode = "as-folder"; - name-column-width = 250; - show-path = false; - sort-method = "name"; - sort-type = "ascending"; + "org/gnome/pomodoro/state" = { + timer-date = "2023-09-13T10:41:52+0000"; + timer-elapsed = 0.0; + timer-paused = false; + timer-score = 0.0; + timer-state = "null"; + timer-state-date = "2023-09-13T10:41:52+0000"; + timer-state-duration = 0.0; }; - "org/gnome/file-roller/ui" = { - sidebar-width = 200; - window-height = 480; - window-width = 600; + "org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9" = { + font = "Monospace 12"; + use-system-font = false; + }; + + "org/gtk/gtk4/settings/file-chooser" = { + date-format = "regular"; + location-mode = "path-bar"; + show-hidden = false; + show-size-column = true; + show-type-column = true; + sidebar-width = 140; + sort-column = "name"; + sort-directories-first = false; + sort-order = "ascending"; + type-format = "category"; + view-type = "list"; + window-size = mkTuple [ 815 385 ]; }; "org/gtk/settings/file-chooser" = { @@ -78,26 +184,40 @@ with lib.hm.gvariant; show-hidden = false; show-size-column = true; show-type-column = true; - sidebar-width = 148; + sidebar-width = 150; sort-column = "name"; sort-directories-first = true; sort-order = "ascending"; type-format = "category"; window-position = mkTuple [ 1612 40 ]; - window-size = mkTuple [ 1096 832 ]; + window-size = mkTuple [ 1096 823 ]; + }; + + "org/nemo/desktop" = { + font = "Noto Sans 10"; }; "org/nemo/preferences" = { - show-hidden-files = false; + last-server-connect-method = 3; + show-hidden-files = true; }; "org/nemo/window-state" = { - geometry = "800x550+1490+90"; + bookmarks-expanded = true; + geometry = "800x550+3015+86"; maximized = false; + network-expanded = true; sidebar-bookmark-breakpoint = 0; + sidebar-width = 249; start-with-sidebar = true; }; + "org/onboard" = { + schema-version = "2.3"; + system-theme-associations = "{'HighContrast': 'HighContrast', 'HighContrastInverse': 'HighContrastInverse', 'LowContrast': 'LowContrast', 'ContrastHighInverse': 'HighContrastInverse', 'Default': ''}"; + use-system-defaults = false; + }; + "org/x/editor/plugins" = { active-plugins = [ "docinfo" "modelines" "sort" "filebrowser" "spell" "time" ]; }; @@ -143,6 +263,12 @@ with lib.hm.gvariant; width = 29; }; + "org/x/player" = { + active-plugins = [ "screensaver" "dbusservice" "autoload-subtitles" "vimeo" "recent" "opensubtitles" "chapters" "media_player_keys" "skipto" "movie-properties" "screenshot" "apple-trailers" ]; + debug = false; + subtitle-encoding = "UTF-8"; + }; + "org/x/viewer/window" = { maximized = true; };