upgraded to python 3.11
This commit is contained in:
parent
c8b521084c
commit
84e93b766d
@ -3,19 +3,16 @@ 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;
|
||||
};
|
||||
nextcloud_scrapsync = pkgs.writeScriptBin
|
||||
"nextcloud_scrapsync" (builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||
manage_library = pkgs.writeScriptBin
|
||||
"manage_library" (builtins.readFile ./scripts/manage_library.fish);
|
||||
ffmpeg4discord = pkgs.writeScriptBin
|
||||
"ffmpeg4discord" (builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||
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; };
|
||||
nextcloud_scrapsync = pkgs.writeScriptBin "nextcloud_scrapsync"
|
||||
(builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||
manage_library = pkgs.writeScriptBin "manage_library"
|
||||
(builtins.readFile ./scripts/manage_library.fish);
|
||||
ffmpeg4discord = pkgs.writeScriptBin "ffmpeg4discord"
|
||||
(builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||
in { # Remember to close this bracket at the end of the document
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
@ -32,9 +29,7 @@ time.timeZone = "America/Mexico_City";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_CA.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_MONETARY = "es_MX.UTF-8";
|
||||
};
|
||||
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
|
||||
};
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
@ -60,8 +55,7 @@ environment.gnome.excludePackages = (with pkgs; [
|
||||
gnome-connections
|
||||
# gnome-shell-extensions
|
||||
baobab
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
]) ++ (with pkgs.gnome; [
|
||||
# totem
|
||||
gedit
|
||||
gnome-music
|
||||
@ -103,9 +97,7 @@ security.sudo = {
|
||||
# noPass = true;
|
||||
# }];
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
nixpkgs.config = { allowUnfree = true; };
|
||||
|
||||
users.users.jawz = {
|
||||
isNormalUser = true;
|
||||
@ -113,7 +105,9 @@ users.users.jawz = {
|
||||
initialPassword = "password";
|
||||
shell = pkgs.fish;
|
||||
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; [
|
||||
|
||||
@ -134,7 +128,7 @@ minecraft # minecraft official launcher
|
||||
parsec-bin # remote gaming with friends
|
||||
unstable.protonup-qt # update proton-ge
|
||||
|
||||
unstable.libreoffice-fresh # office, but based
|
||||
libreoffice-fresh # office, but based
|
||||
calibre # ugly af eBook library manager
|
||||
foliate # gtk eBook reader
|
||||
gnome-feeds # feed reader, maybe will replace with nextcloud
|
||||
@ -222,7 +216,7 @@ bats # testing system, required by Exercism
|
||||
bashdb # autocomplete
|
||||
shellcheck # linting
|
||||
shfmt # a shell parser and formatter
|
||||
nodePackages.bash-language-server # LSP support
|
||||
# nodePackages.bash-language-server # LSP support
|
||||
file # required by my tasks script?
|
||||
gnome.zenity # dependency of my scripts
|
||||
xclip # manipulate clipboard from scripts
|
||||
@ -256,25 +250,32 @@ gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
||||
|
||||
# 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; [
|
||||
]) ++ (with pkgs.python311Packages; [
|
||||
black # Python code formatter
|
||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||
isort # sort Python imports
|
||||
nose # testing and running python scripts
|
||||
pipx # install python packages in a virtual environment
|
||||
poetry # dependency management made easy
|
||||
pyflakes # checks source code for errors
|
||||
pylint # bug and style checker for python
|
||||
pytest # framework for writing tests
|
||||
speedtest-cli # check internet speed from the comand line
|
||||
editorconfig # follow rules of contributin
|
||||
]) ++ (with pkgs.python310Packages;
|
||||
[
|
||||
poetry # dependency management made easy
|
||||
|
||||
]) ++ (with pkgs.bat-extras; [
|
||||
batman # man pages
|
||||
@ -298,14 +299,17 @@ symbola
|
||||
panel-scroll
|
||||
reading-strip
|
||||
tactile
|
||||
]) ++ (with unstable.pkgs.gnomeExtensions;
|
||||
[
|
||||
pano
|
||||
|
||||
]) ++ (with pkgs.nodePackages; [
|
||||
dockerfile-language-server-nodejs
|
||||
# dockerfile-language-server-nodejs
|
||||
markdownlint-cli
|
||||
prettier
|
||||
pnpm
|
||||
]); }; # <--- end of package list
|
||||
]);
|
||||
}; # <--- end of package list
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
@ -321,12 +325,15 @@ programs.fish = {
|
||||
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";
|
||||
@ -392,7 +399,8 @@ programs = {
|
||||
enable = true;
|
||||
config = {
|
||||
pager = "less -FR";
|
||||
theme = "base16"; };
|
||||
theme = "base16";
|
||||
};
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
@ -421,7 +429,8 @@ xdg = {
|
||||
};
|
||||
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;
|
||||
@ -505,9 +514,7 @@ snapraid = {
|
||||
olderThan = 10;
|
||||
interval = "4:00";
|
||||
};
|
||||
parityFiles = [
|
||||
"/mnt/parity/snapraid.parity"
|
||||
];
|
||||
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||
extraConfig = ''
|
||||
autosave 50
|
||||
'';
|
||||
@ -539,9 +546,7 @@ programs = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
geary = {
|
||||
enable = true;
|
||||
};
|
||||
geary = { enable = true; };
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
@ -559,11 +564,7 @@ services = {
|
||||
fstrim.enable = true;
|
||||
btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [
|
||||
"/"
|
||||
"/mnt/disk1"
|
||||
"/mnt/disk2"
|
||||
];
|
||||
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
|
||||
};
|
||||
openssh = {
|
||||
enable = true;
|
||||
@ -571,12 +572,10 @@ services = {
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
startWhenNeeded = true;
|
||||
listenAddresses = [
|
||||
{
|
||||
listenAddresses = [{
|
||||
addr = "0.0.0.0";
|
||||
port = 25152;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
# udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||
emacs = {
|
||||
@ -597,23 +596,19 @@ systemd.services = {
|
||||
environment = {
|
||||
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
||||
};
|
||||
path = [
|
||||
pkgs.docker-compose
|
||||
];
|
||||
path = [ pkgs.docker-compose ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
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";
|
||||
};
|
||||
};
|
||||
"nextcloud_scrapsync" = {
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
nextcloud_scrapsync
|
||||
];
|
||||
path = [ pkgs.bash nextcloud_scrapsync ];
|
||||
serviceConfig = {
|
||||
RestartSec = 30;
|
||||
ExecStart = "${nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||
@ -643,9 +638,7 @@ systemd.user.services = {
|
||||
restartIfChanged = true;
|
||||
description = "Run hentai@home server";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.HentaiAtHome
|
||||
];
|
||||
path = [ pkgs.HentaiAtHome ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
@ -658,10 +651,7 @@ systemd.user.services = {
|
||||
restartIfChanged = true;
|
||||
description = "Run the manage library fish script";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.fish
|
||||
manage_library
|
||||
];
|
||||
path = [ pkgs.fish manage_library ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
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…
|
||||
|
||||
#+begin_src nix
|
||||
unstable.libreoffice-fresh # office, but based
|
||||
libreoffice-fresh # office, but based
|
||||
calibre # ugly af eBook library manager
|
||||
foliate # gtk eBook reader
|
||||
gnome-feeds # feed reader, maybe will replace with nextcloud
|
||||
@ -397,7 +397,7 @@ bats # testing system, required by Exercism
|
||||
bashdb # autocomplete
|
||||
shellcheck # linting
|
||||
shfmt # a shell parser and formatter
|
||||
nodePackages.bash-language-server # LSP support
|
||||
# nodePackages.bash-language-server # LSP support
|
||||
file # required by my tasks script?
|
||||
gnome.zenity # dependency of my scripts
|
||||
xclip # manipulate clipboard from scripts
|
||||
@ -453,18 +453,19 @@ symbola
|
||||
** PYTHON
|
||||
|
||||
#+begin_src nix
|
||||
]) ++ (with pkgs.python310Packages; [
|
||||
]) ++ (with pkgs.python311Packages; [
|
||||
black # Python code formatter
|
||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||
isort # sort Python imports
|
||||
nose # testing and running python scripts
|
||||
pipx # install python packages in a virtual environment
|
||||
poetry # dependency management made easy
|
||||
pyflakes # checks source code for errors
|
||||
pylint # bug and style checker for python
|
||||
pytest # framework for writing tests
|
||||
speedtest-cli # check internet speed from the comand line
|
||||
editorconfig # follow rules of contributin
|
||||
]) ++ (with pkgs.python310Packages; [
|
||||
poetry # dependency management made easy
|
||||
#+end_src
|
||||
|
||||
** BAT-EXTRAS
|
||||
@ -500,6 +501,7 @@ symbola
|
||||
panel-scroll
|
||||
reading-strip
|
||||
tactile
|
||||
]) ++ (with unstable.pkgs.gnomeExtensions; [
|
||||
pano
|
||||
#+end_src
|
||||
|
||||
@ -507,7 +509,7 @@ symbola
|
||||
|
||||
#+begin_src nix
|
||||
]) ++ (with pkgs.nodePackages; [
|
||||
dockerfile-language-server-nodejs
|
||||
# dockerfile-language-server-nodejs
|
||||
markdownlint-cli
|
||||
prettier
|
||||
pnpm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user