upgraded to python 3.11
This commit is contained in:
parent
c8b521084c
commit
84e93b766d
@ -3,19 +3,16 @@ let
|
|||||||
VERSION = "22.11";
|
VERSION = "22.11";
|
||||||
# HOME-MANAGER = builtins.fetchTarball
|
# HOME-MANAGER = builtins.fetchTarball
|
||||||
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||||
unstable_tarball = builtins.fetchTarball
|
unstable_tarball =
|
||||||
https://github.com/nixos/nixpkgs/tarball/master;
|
builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master";
|
||||||
unstable = import unstable_tarball {
|
unstable = import unstable_tarball { config = config.nixpkgs.config; };
|
||||||
config = config.nixpkgs.config;
|
nextcloud_scrapsync = pkgs.writeScriptBin "nextcloud_scrapsync"
|
||||||
};
|
(builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||||
nextcloud_scrapsync = pkgs.writeScriptBin
|
manage_library = pkgs.writeScriptBin "manage_library"
|
||||||
"nextcloud_scrapsync" (builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
(builtins.readFile ./scripts/manage_library.fish);
|
||||||
manage_library = pkgs.writeScriptBin
|
ffmpeg4discord = pkgs.writeScriptBin "ffmpeg4discord"
|
||||||
"manage_library" (builtins.readFile ./scripts/manage_library.fish);
|
(builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||||
ffmpeg4discord = pkgs.writeScriptBin
|
in { # Remember to close this bracket at the end of the document
|
||||||
"ffmpeg4discord" (builtins.readFile ./scripts/ffmpeg4discord.py);
|
|
||||||
in
|
|
||||||
{ # Remember to close this bracket at the end of the document
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@ -32,9 +29,7 @@ time.timeZone = "America/Mexico_City";
|
|||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_CA.UTF-8";
|
defaultLocale = "en_CA.UTF-8";
|
||||||
extraLocaleSettings = {
|
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
|
||||||
LC_MONETARY = "es_MX.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
@ -60,8 +55,7 @@ environment.gnome.excludePackages = (with pkgs; [
|
|||||||
gnome-connections
|
gnome-connections
|
||||||
# gnome-shell-extensions
|
# gnome-shell-extensions
|
||||||
baobab
|
baobab
|
||||||
])
|
]) ++ (with pkgs.gnome; [
|
||||||
++ (with pkgs.gnome; [
|
|
||||||
# totem
|
# totem
|
||||||
gedit
|
gedit
|
||||||
gnome-music
|
gnome-music
|
||||||
@ -103,9 +97,7 @@ security.sudo = {
|
|||||||
# noPass = true;
|
# noPass = true;
|
||||||
# }];
|
# }];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = { allowUnfree = true; };
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.jawz = {
|
users.users.jawz = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@ -113,7 +105,9 @@ users.users.jawz = {
|
|||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
openssh = {
|
openssh = {
|
||||||
authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES" ];
|
authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacerocdreyes@100CDREYES"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
|
|
||||||
@ -134,7 +128,7 @@ minecraft # minecraft official launcher
|
|||||||
parsec-bin # remote gaming with friends
|
parsec-bin # remote gaming with friends
|
||||||
unstable.protonup-qt # update proton-ge
|
unstable.protonup-qt # update proton-ge
|
||||||
|
|
||||||
unstable.libreoffice-fresh # office, but based
|
libreoffice-fresh # office, but based
|
||||||
calibre # ugly af eBook library manager
|
calibre # ugly af eBook library manager
|
||||||
foliate # gtk eBook reader
|
foliate # gtk eBook reader
|
||||||
gnome-feeds # feed reader, maybe will replace with nextcloud
|
gnome-feeds # feed reader, maybe will replace with nextcloud
|
||||||
@ -222,7 +216,7 @@ bats # testing system, required by Exercism
|
|||||||
bashdb # autocomplete
|
bashdb # autocomplete
|
||||||
shellcheck # linting
|
shellcheck # linting
|
||||||
shfmt # a shell parser and formatter
|
shfmt # a shell parser and formatter
|
||||||
nodePackages.bash-language-server # LSP support
|
# nodePackages.bash-language-server # LSP support
|
||||||
file # required by my tasks script?
|
file # required by my tasks script?
|
||||||
gnome.zenity # dependency of my scripts
|
gnome.zenity # dependency of my scripts
|
||||||
xclip # manipulate clipboard from scripts
|
xclip # manipulate clipboard from scripts
|
||||||
@ -256,25 +250,32 @@ gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
|||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
(nerdfonts.override {
|
(nerdfonts.override {
|
||||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro" "Ubuntu" "FiraCode" "Iosevka" ];
|
fonts = [
|
||||||
|
"Agave"
|
||||||
|
"CascadiaCode"
|
||||||
|
"SourceCodePro"
|
||||||
|
"Ubuntu"
|
||||||
|
"FiraCode"
|
||||||
|
"Iosevka"
|
||||||
|
];
|
||||||
})
|
})
|
||||||
symbola
|
symbola
|
||||||
(papirus-icon-theme.override {
|
(papirus-icon-theme.override { color = "adwaita"; })
|
||||||
color = "adwaita";
|
|
||||||
})
|
|
||||||
|
|
||||||
]) ++ (with pkgs.python310Packages; [
|
]) ++ (with pkgs.python311Packages; [
|
||||||
black # Python code formatter
|
black # Python code formatter
|
||||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||||
isort # sort Python imports
|
isort # sort Python imports
|
||||||
nose # testing and running python scripts
|
nose # testing and running python scripts
|
||||||
pipx # install python packages in a virtual environment
|
pipx # install python packages in a virtual environment
|
||||||
poetry # dependency management made easy
|
|
||||||
pyflakes # checks source code for errors
|
pyflakes # checks source code for errors
|
||||||
pylint # bug and style checker for python
|
pylint # bug and style checker for python
|
||||||
pytest # framework for writing tests
|
pytest # framework for writing tests
|
||||||
speedtest-cli # check internet speed from the comand line
|
speedtest-cli # check internet speed from the comand line
|
||||||
editorconfig # follow rules of contributin
|
editorconfig # follow rules of contributin
|
||||||
|
]) ++ (with pkgs.python310Packages;
|
||||||
|
[
|
||||||
|
poetry # dependency management made easy
|
||||||
|
|
||||||
]) ++ (with pkgs.bat-extras; [
|
]) ++ (with pkgs.bat-extras; [
|
||||||
batman # man pages
|
batman # man pages
|
||||||
@ -298,14 +299,17 @@ symbola
|
|||||||
panel-scroll
|
panel-scroll
|
||||||
reading-strip
|
reading-strip
|
||||||
tactile
|
tactile
|
||||||
|
]) ++ (with unstable.pkgs.gnomeExtensions;
|
||||||
|
[
|
||||||
pano
|
pano
|
||||||
|
|
||||||
]) ++ (with pkgs.nodePackages; [
|
]) ++ (with pkgs.nodePackages; [
|
||||||
dockerfile-language-server-nodejs
|
# dockerfile-language-server-nodejs
|
||||||
markdownlint-cli
|
markdownlint-cli
|
||||||
prettier
|
prettier
|
||||||
pnpm
|
pnpm
|
||||||
]); }; # <--- end of package list
|
]);
|
||||||
|
}; # <--- end of package list
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
@ -321,12 +325,15 @@ programs.fish = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
# useBabelfish = true; This setting doens't work from inside home-manager
|
# useBabelfish = true; This setting doens't work from inside home-manager
|
||||||
shellAliases = {
|
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";
|
edit = "emacsclient -t";
|
||||||
comic = "download -u jawz -i (cat $lc | fzf --multi --exact -i)";
|
comic = "download -u jawz -i (cat $lc | fzf --multi --exact -i)";
|
||||||
gallery = "download -u jawz -i (cat $lw | 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)";
|
open_gallery =
|
||||||
unique_extensions = "find . -type f | string match -r '([^.\/]+)\$' | sort -u";
|
"open (find /mnt/disk2/scrapping/JawZ/gallery-dl -type d | fzf)";
|
||||||
|
unique_extensions =
|
||||||
|
"find . -type f | string match -r '([^./]+)$' | sort -u";
|
||||||
cp = "cp -i";
|
cp = "cp -i";
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
mkdir = "mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
@ -392,7 +399,8 @@ programs = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
pager = "less -FR";
|
pager = "less -FR";
|
||||||
theme = "base16"; };
|
theme = "base16";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -421,7 +429,8 @@ xdg = {
|
|||||||
};
|
};
|
||||||
configFile = {
|
configFile = {
|
||||||
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
"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;
|
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
||||||
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
||||||
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
||||||
@ -505,9 +514,7 @@ snapraid = {
|
|||||||
olderThan = 10;
|
olderThan = 10;
|
||||||
interval = "4:00";
|
interval = "4:00";
|
||||||
};
|
};
|
||||||
parityFiles = [
|
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||||
"/mnt/parity/snapraid.parity"
|
|
||||||
];
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autosave 50
|
autosave 50
|
||||||
'';
|
'';
|
||||||
@ -539,9 +546,7 @@ programs = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
geary = {
|
geary = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
@ -559,11 +564,7 @@ services = {
|
|||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
btrfs.autoScrub = {
|
btrfs.autoScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fileSystems = [
|
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
|
||||||
"/"
|
|
||||||
"/mnt/disk1"
|
|
||||||
"/mnt/disk2"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -571,12 +572,10 @@ services = {
|
|||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
kbdInteractiveAuthentication = false;
|
kbdInteractiveAuthentication = false;
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
listenAddresses = [
|
listenAddresses = [{
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 25152;
|
port = 25152;
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
# udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
# udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||||
emacs = {
|
emacs = {
|
||||||
@ -597,23 +596,19 @@ systemd.services = {
|
|||||||
environment = {
|
environment = {
|
||||||
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
||||||
};
|
};
|
||||||
path = [
|
path = [ pkgs.docker-compose ];
|
||||||
pkgs.docker-compose
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
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";
|
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"nextcloud_scrapsync" = {
|
"nextcloud_scrapsync" = {
|
||||||
description = "Sync scrapped files with nextcloud";
|
description = "Sync scrapped files with nextcloud";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.bash nextcloud_scrapsync ];
|
||||||
pkgs.bash
|
|
||||||
nextcloud_scrapsync
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
ExecStart = "${nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
ExecStart = "${nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||||
@ -643,9 +638,7 @@ systemd.user.services = {
|
|||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Run hentai@home server";
|
description = "Run hentai@home server";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.HentaiAtHome ];
|
||||||
pkgs.HentaiAtHome
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
@ -658,10 +651,7 @@ systemd.user.services = {
|
|||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Run the manage library fish script";
|
description = "Run the manage library fish script";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.fish manage_library ];
|
||||||
pkgs.fish
|
|
||||||
manage_library
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
|
|||||||
@ -282,7 +282,7 @@ This is the section where the apps that help me be productive come, a lot of
|
|||||||
this are not used as often as I wish…
|
this are not used as often as I wish…
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
unstable.libreoffice-fresh # office, but based
|
libreoffice-fresh # office, but based
|
||||||
calibre # ugly af eBook library manager
|
calibre # ugly af eBook library manager
|
||||||
foliate # gtk eBook reader
|
foliate # gtk eBook reader
|
||||||
gnome-feeds # feed reader, maybe will replace with nextcloud
|
gnome-feeds # feed reader, maybe will replace with nextcloud
|
||||||
@ -397,7 +397,7 @@ bats # testing system, required by Exercism
|
|||||||
bashdb # autocomplete
|
bashdb # autocomplete
|
||||||
shellcheck # linting
|
shellcheck # linting
|
||||||
shfmt # a shell parser and formatter
|
shfmt # a shell parser and formatter
|
||||||
nodePackages.bash-language-server # LSP support
|
# nodePackages.bash-language-server # LSP support
|
||||||
file # required by my tasks script?
|
file # required by my tasks script?
|
||||||
gnome.zenity # dependency of my scripts
|
gnome.zenity # dependency of my scripts
|
||||||
xclip # manipulate clipboard from scripts
|
xclip # manipulate clipboard from scripts
|
||||||
@ -453,18 +453,19 @@ symbola
|
|||||||
** PYTHON
|
** PYTHON
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
]) ++ (with pkgs.python310Packages; [
|
]) ++ (with pkgs.python311Packages; [
|
||||||
black # Python code formatter
|
black # Python code formatter
|
||||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||||
isort # sort Python imports
|
isort # sort Python imports
|
||||||
nose # testing and running python scripts
|
nose # testing and running python scripts
|
||||||
pipx # install python packages in a virtual environment
|
pipx # install python packages in a virtual environment
|
||||||
poetry # dependency management made easy
|
|
||||||
pyflakes # checks source code for errors
|
pyflakes # checks source code for errors
|
||||||
pylint # bug and style checker for python
|
pylint # bug and style checker for python
|
||||||
pytest # framework for writing tests
|
pytest # framework for writing tests
|
||||||
speedtest-cli # check internet speed from the comand line
|
speedtest-cli # check internet speed from the comand line
|
||||||
editorconfig # follow rules of contributin
|
editorconfig # follow rules of contributin
|
||||||
|
]) ++ (with pkgs.python310Packages; [
|
||||||
|
poetry # dependency management made easy
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** BAT-EXTRAS
|
** BAT-EXTRAS
|
||||||
@ -500,6 +501,7 @@ symbola
|
|||||||
panel-scroll
|
panel-scroll
|
||||||
reading-strip
|
reading-strip
|
||||||
tactile
|
tactile
|
||||||
|
]) ++ (with unstable.pkgs.gnomeExtensions; [
|
||||||
pano
|
pano
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -507,7 +509,7 @@ symbola
|
|||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
]) ++ (with pkgs.nodePackages; [
|
]) ++ (with pkgs.nodePackages; [
|
||||||
dockerfile-language-server-nodejs
|
# dockerfile-language-server-nodejs
|
||||||
markdownlint-cli
|
markdownlint-cli
|
||||||
prettier
|
prettier
|
||||||
pnpm
|
pnpm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user