This commit is contained in:
able 2023-09-17 15:38:47 -05:00
parent 75b621c74f
commit 8230b7ce9c
3 changed files with 444 additions and 32 deletions

View file

@ -1,7 +1,10 @@
{ config, pkgs, ... }: { { config
, pkgs
, ...
}: {
imports = [ imports = [
# Include the results of the hardware scan. ./hardware-configuration.nix # Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos> <home-manager/nixos>
]; ];
@ -101,6 +104,28 @@
security.rtkit.enable = true; security.rtkit.enable = true;
sound.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 = { users.users.able = {
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
@ -109,16 +134,27 @@
isNormalUser = true; isNormalUser = true;
description = "able"; description = "able";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [
"networkmanager"
"wheel"
"input"
];
}; };
home-manager.users.able = { pkgs, ... }: { home-manager.users.able = { pkgs, ... }: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-12.2.3"
];
# "https://rycee.gitlab.io/home-manager/options.html" # opt-dconf.settings # "https://rycee.gitlab.io/home-manager/options.html" # opt-dconf.settings
imports = [ ./dconf.nix ]; imports = [ ./dconf.nix ];
home.stateVersion = "22.11"; home.stateVersion = "22.11";
home.packages = with pkgs; [ home.packages = with pkgs; [
adoptopenjdk-bin
bottles
cataclysm-dda
cinnamon.nemo cinnamon.nemo
dconf2nix dconf2nix
@ -132,6 +168,7 @@
gzdoom gzdoom
enyo-launcher enyo-launcher
etcher
nixfmt nixfmt
@ -139,16 +176,26 @@
prismlauncher prismlauncher
llvmPackages_16.clangUseLLVM llvmPackages_16.clangUseLLVM
lutris
obs-studio obs-studio
obsidian
openrgb openrgb
openmw
OVMFFull OVMFFull
qemu_full qemu_full
rustup rustup
shattered-pixel-dungeon
steam steam
soundux soundux
spotify spotify
winePackages.full
unityhub
vtm # MonoTTY VTM
]; ];
@ -159,9 +206,10 @@
rebuild = "sudo nixos-rebuild switch"; rebuild = "sudo nixos-rebuild switch";
# Git commands # Git commands
gcl = "git clone"; gcl = "git clone";
genpass = "strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo"; 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 # # List Variants #
################# #################
@ -171,7 +219,6 @@
}; };
initExtra = '' initExtra = ''
PROMPT_COMMAND="history -n; history -w; history -c; history -r; $PROMPT_COMMAND"
up(){ up(){
local d="" local d=""
limit=$1 limit=$1
@ -204,6 +251,9 @@
PS1="$LINE_ONE$LINE_TWO" PS1="$LINE_ONE$LINE_TWO"
PS2="$PROMPT" PS2="$PROMPT"
##################### #####################
# History managment # # History managment #
##################### #####################
@ -234,10 +284,14 @@
}; };
}; };
"editor.minimap.enabled" = false;
"[nix]".editor.tabSize = 2; "[nix]".editor.tabSize = 2;
git.autofetch = true; git = {
autofetch = true;
enableSmartCommit = true;
};
gitlens.showWelcomeOnInstall = false; gitlens.showWelcomeOnInstall = false;
explorer.confirmDelete = false; explorer.confirmDelete = false;
@ -309,11 +363,13 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; services.udev.extraRules = ''
[ SUBSYSTEM=="usb", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", MODE="0666"
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. KERNEL=="hidraw*", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", MODE="0666"
# wget '';
];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

230
dconf.dconf Normal file
View file

@ -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

166
dconf.nix
View file

@ -5,17 +5,55 @@ with lib.hm.gvariant;
{ {
dconf.settings = { 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" = { "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" ]; 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 = 15; 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-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" = { "org/cinnamon/desktop/interface" = {
cursor-blink-time = 1200; cursor-blink-time = 1200;
cursor-size = 24;
cursor-theme = "GoogleDot-Black"; cursor-theme = "GoogleDot-Black";
font-name = "Noto Sans 10";
gtk-theme = "Adwaita-dark"; gtk-theme = "Adwaita-dark";
icon-theme = "HighContrast"; icon-theme = "HighContrast";
text-scaling-factor = 1.0;
}; };
"org/cinnamon/desktop/keybindings" = { "org/cinnamon/desktop/keybindings" = {
@ -29,18 +67,43 @@ with lib.hm.gvariant;
}; };
"org/cinnamon/desktop/keybindings/media-keys" = { "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" = { "org/cinnamon/desktop/peripherals/keyboard" = {
delay = mkUint32 500; delay = mkUint32 500;
numlock-state = false;
repeat-interval = mkUint32 30; 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" = { "org/cinnamon/desktop/sound" = {
event-sounds = false; event-sounds = false;
}; };
"org/cinnamon/desktop/wm/preferences" = {
num-workspaces = 4;
titlebar-font = "Noto Sans 10";
workspace-names = [ ];
};
"org/cinnamon/settings-daemon/peripherals/keyboard" = { "org/cinnamon/settings-daemon/peripherals/keyboard" = {
numlock-state = "off"; numlock-state = "off";
}; };
@ -49,27 +112,70 @@ with lib.hm.gvariant;
name = "Linux Mint"; 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" = { "org/gnome/evolution-data-server" = {
migrated = true; migrated = true;
}; };
"org/gnome/file-roller/dialogs/extract" = { "org/gnome/pomodoro/preferences" = {
recreate-folders = true; pomodoro-duration = 1500.0;
skip-newer = false;
}; };
"org/gnome/file-roller/listing" = { "org/gnome/pomodoro/state" = {
list-mode = "as-folder"; timer-date = "2023-09-13T10:41:52+0000";
name-column-width = 250; timer-elapsed = 0.0;
show-path = false; timer-paused = false;
sort-method = "name"; timer-score = 0.0;
sort-type = "ascending"; timer-state = "null";
timer-state-date = "2023-09-13T10:41:52+0000";
timer-state-duration = 0.0;
}; };
"org/gnome/file-roller/ui" = { "org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9" = {
sidebar-width = 200; font = "Monospace 12";
window-height = 480; use-system-font = false;
window-width = 600; };
"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" = { "org/gtk/settings/file-chooser" = {
@ -78,26 +184,40 @@ with lib.hm.gvariant;
show-hidden = false; show-hidden = false;
show-size-column = true; show-size-column = true;
show-type-column = true; show-type-column = true;
sidebar-width = 148; sidebar-width = 150;
sort-column = "name"; sort-column = "name";
sort-directories-first = true; sort-directories-first = true;
sort-order = "ascending"; sort-order = "ascending";
type-format = "category"; type-format = "category";
window-position = mkTuple [ 1612 40 ]; 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" = { "org/nemo/preferences" = {
show-hidden-files = false; last-server-connect-method = 3;
show-hidden-files = true;
}; };
"org/nemo/window-state" = { "org/nemo/window-state" = {
geometry = "800x550+1490+90"; bookmarks-expanded = true;
geometry = "800x550+3015+86";
maximized = false; maximized = false;
network-expanded = true;
sidebar-bookmark-breakpoint = 0; sidebar-bookmark-breakpoint = 0;
sidebar-width = 249;
start-with-sidebar = true; 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" = { "org/x/editor/plugins" = {
active-plugins = [ "docinfo" "modelines" "sort" "filebrowser" "spell" "time" ]; active-plugins = [ "docinfo" "modelines" "sort" "filebrowser" "spell" "time" ];
}; };
@ -143,6 +263,12 @@ with lib.hm.gvariant;
width = 29; 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" = { "org/x/viewer/window" = {
maximized = true; maximized = true;
}; };