pokeshell and some scanner/printer settings

This commit is contained in:
Danilo Reyes 2023-05-06 09:31:09 -06:00
parent 16bff540f8
commit fd0dcde8f3
3 changed files with 540 additions and 529 deletions

View File

@ -3,12 +3,18 @@ let
VERSION = "22.11";
# HOME-MANAGER = builtins.fetchTarball
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
UNSTABLE_TARBALL =
builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master";
unstable = import UNSTABLE_TARBALL { config = config.nixpkgs.config; };
in { # Remember to close this bracket at the end of the document
UNSTABLE_TARBALL = builtins.fetchTarball
https://github.com/nixos/nixpkgs/tarball/master;
unstable = import UNSTABLE_TARBALL {
config = config.nixpkgs.config;
};
in
{ # Remember to close this bracket at the end of the document
imports = [ ./hardware-configuration.nix <home-manager/nixos> ];
imports = [
./hardware-configuration.nix
<home-manager/nixos>
];
networking.hostName = "workstation";
@ -19,7 +25,9 @@ in { # Remember to close this bracket at the end of the document
i18n = {
defaultLocale = "en_CA.UTF-8";
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
extraLocaleSettings = {
LC_MONETARY = "es_MX.UTF-8";
};
};
console = {
font = "Lat2-Terminus16";
@ -46,7 +54,8 @@ in { # Remember to close this bracket at the end of the document
gnome-connections
# gnome-shell-extensions
baobab
]) ++ (with pkgs.gnome; [
])
++ (with pkgs.gnome; [
# totem
gedit
gnome-music
@ -81,11 +90,13 @@ in { # Remember to close this bracket at the end of the document
# noPass = true;
# }];
nixpkgs.config = { allowUnfree = true; };
nixpkgs.config = {
allowUnfree = true;
};
users.users.jawz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ];
extraGroups = [ "wheel" "networkmanager" "docker" "scanner" "lp" ];
initialPassword = "password";
shell = pkgs.fish;
packages = (with pkgs; [
@ -94,7 +105,7 @@ in { # Remember to close this bracket at the end of the document
godot # game development
unstable.gdtoolkit # gdscript language server
krita # art to your heart desire!
drawpile # arty party with friends!!
# drawpile # arty party with friends!!
mypaint # not the best art program
mypaint-brushes # but it's got some
mypaint-brushes1 # nice damn brushes
@ -112,6 +123,7 @@ in { # Remember to close this bracket at the end of the document
foliate # gtk eBook reader
gnome.simple-scan # document scanner
gnome-feeds # feed reader, maybe will replace with nextcloud
unstable.wike # gtk wikipedia wow!
# sequeler # friendly SQL client
blanket # background noise
@ -166,7 +178,6 @@ in { # Remember to close this bracket at the end of the document
xdg-ninja # help declutter $HOME
torrenttools # create torrent files from the terminal!
lm_sensors # for extension, displays cpu temp
# unstable.pokemon-colorscripts-mac # pokemon on your terminal!
# required by doom emacs, but still are rather useful.
fd # modern find, faster searches
@ -223,18 +234,13 @@ in { # Remember to close this bracket at the end of the document
# Fonts
(nerdfonts.override {
fonts = [
"Agave"
"CascadiaCode"
"SourceCodePro"
"Ubuntu"
"FiraCode"
"Iosevka"
];
fonts = [ "Agave" "CascadiaCode" "SourceCodePro" "Ubuntu" "FiraCode" "Iosevka" ];
})
symbola
(papirus-icon-theme.override { color = "adwaita"; })
(papirus-icon-theme.override {
color = "adwaita";
})
]) ++ (with pkgs.python310Packages; [
black # Python code formatter
@ -270,8 +276,7 @@ in { # Remember to close this bracket at the end of the document
markdownlint-cli
prettier
pnpm
]);
}; # <--- end of package list
]); }; # <--- end of package list
fonts.fontconfig.enable = true;
@ -288,15 +293,12 @@ in { # Remember to close this bracket at the end of the document
enable = true;
# useBabelfish = true; This setting doens't work from inside home-manager
shellAliases = {
ls =
"exa --icons --group-directories-first --no-permissions --no-user --no-time";
ls = "exa --icons --group-directories-first --no-permissions --no-user --no-time";
edit = "emacsclient -t";
comic = "download -u jawz -i (cat $lc | fzf --multi --exact -i)";
gallery = "download -u jawz -i (cat $lw | fzf --multi --exact -i)";
open_gallery =
"open (find /mnt/disk2/scrapping/JawZ/gallery-dl -type d | fzf)";
unique_extensions =
"find . -type f | string match -r '([^./]+)$' | sort -u";
open_gallery = "open (find /mnt/disk2/scrapping/JawZ/gallery-dl -type d | fzf)";
unique_extensions = "find . -type f | string match -r '([^.\/]+)\$' | sort -u";
cp = "cp -i";
mv = "mv -i";
mkdir = "mkdir -p";
@ -319,7 +321,7 @@ in { # Remember to close this bracket at the end of the document
interactiveShellInit = ''
function fish_greeting
pokemon-colorscripts -r
pokemon-colorscripts -r --no-title
end
# Lists
set -l list_root ${config.home.homeDirectory}/.config/jawz/lists/jawz
@ -363,8 +365,7 @@ in { # Remember to close this bracket at the end of the document
config = {
# map-syntax = [ "*.jenkinsfile:Groovy" "*.props:Java Properties" ];
pager = "less -FR";
theme = "base16";
};
theme = "base16"; };
};
git = {
enable = true;
@ -397,8 +398,7 @@ in { # Remember to close this bracket at the end of the document
};
configFile = {
"wgetrc".source = ./dotfiles/wget/wgetrc;
"configstore/update-notifier-npm-check.json".source =
./dotfiles/npm/update-notifier-npm-check.json;
"configstore/update-notifier-npm-check.json".source = ./dotfiles/npm/update-notifier-npm-check.json;
"npm/npmrc".source = ./dotfiles/npm/npmrc;
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
"htop/htoprc".source = ./dotfiles/htop/htoprc;
@ -485,7 +485,9 @@ in { # Remember to close this bracket at the end of the document
olderThan = 10;
interval = "4:00";
};
parityFiles = [ "/mnt/parity/snapraid.parity" ];
parityFiles = [
"/mnt/parity/snapraid.parity"
];
extraConfig = ''
autosave 50
'';
@ -513,7 +515,9 @@ in { # Remember to close this bracket at the end of the document
enable = true;
enableSSHSupport = true;
};
geary = { enable = true; };
geary = {
enable = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
@ -526,7 +530,11 @@ in { # Remember to close this bracket at the end of the document
fstrim.enable = true;
btrfs.autoScrub = {
enable = true;
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
fileSystems = [
"/"
"/mnt/disk1"
"/mnt/disk2"
];
};
openssh = {
enable = true;
@ -551,13 +559,14 @@ in { # Remember to close this bracket at the end of the document
environment = {
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
};
path = [ pkgs.docker-compose ];
path = [
pkgs.docker-compose
];
serviceConfig = {
Restart = "on-failure";
# Type = "simple";
RestartSec = 30;
ExecStart =
"${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
ExecStart = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
};
};
@ -568,7 +577,9 @@ in { # Remember to close this bracket at the end of the document
restartIfChanged = true;
description = "Run hentai@home server";
wantedBy = [ "multi-user.target" ];
path = [ pkgs.HentaiAtHome ];
path = [
pkgs.HentaiAtHome
];
serviceConfig = {
Restart = "on-failure";
RestartSec = 30;

View File

@ -38,7 +38,6 @@
- [X] furtherance upgrade
- [-] zap init
- [-] font-downloader
- [ ] pokemon-colorscripts
- [ ] SaveDesktop (flathub)
- [ ] gelata
- [ ] pokeshell
@ -242,7 +241,7 @@ as a dotfile and service manager.
#+begin_src nix
users.users.jawz = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ];
extraGroups = [ "wheel" "networkmanager" "docker" "scanner" "lp" ];
initialPassword = "password";
shell = pkgs.fish;
packages = (with pkgs; [
@ -261,7 +260,7 @@ blender # cgi animation and sculpting
godot # game development
unstable.gdtoolkit # gdscript language server
krita # art to your heart desire!
drawpile # arty party with friends!!
# drawpile # arty party with friends!!
mypaint # not the best art program
mypaint-brushes # but it's got some
mypaint-brushes1 # nice damn brushes
@ -291,6 +290,7 @@ calibre # ugly af eBook library manager
foliate # gtk eBook reader
gnome.simple-scan # document scanner
gnome-feeds # feed reader, maybe will replace with nextcloud
unstable.wike # gtk wikipedia wow!
#+end_src
*** MISC
@ -367,7 +367,6 @@ tree-sitter # code parsing, required by Doom emacs
xdg-ninja # help declutter $HOME
torrenttools # create torrent files from the terminal!
lm_sensors # for extension, displays cpu temp
# unstable.pokemon-colorscripts-mac # pokemon on your terminal!
#+end_src
** DEVELOPMENT PACKAGES
@ -571,7 +570,7 @@ programs.fish = {
#+begin_src fish
function fish_greeting
pokemon-colorscripts -r
pokemon-colorscripts -r --no-title
end
# Lists
set -l list_root ${config.home.homeDirectory}/.config/jawz/lists/jawz

View File

@ -131,6 +131,7 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware = {
sane.enable = true;
cpu.intel.updateMicrocode = lib.mkDefault true;
bluetooth.enable = true;
# huion driver