opening ports and gnome shell extensions
This commit is contained in:
parent
c58d8fc88b
commit
bc0c02e004
@ -3,28 +3,29 @@ let
|
||||
open_firewall_ports = [
|
||||
80 # http
|
||||
443 # https
|
||||
6969 # HentaiAtHome
|
||||
25152 # ssh
|
||||
49494 # gerbera
|
||||
];
|
||||
open_firewall_port_ranges = [
|
||||
{ from = 1714; to = 1764; } # kdeconnect
|
||||
open_firewall_port_ranges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
} # kdeconnect
|
||||
];
|
||||
VERSION = "23.05";
|
||||
# "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;
|
||||
};
|
||||
nix-gaming = import (builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
||||
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; };
|
||||
nix-gaming = import (builtins.fetchTarball
|
||||
"https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
||||
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
|
||||
@ -41,9 +42,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";
|
||||
@ -69,8 +68,7 @@ environment.gnome.excludePackages = (with pkgs; [
|
||||
gnome-connections
|
||||
# gnome-shell-extensions
|
||||
baobab
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
]) ++ (with pkgs.gnome; [
|
||||
# totem
|
||||
gedit
|
||||
gnome-music
|
||||
@ -117,9 +115,7 @@ security.sudo = {
|
||||
# noPass = true;
|
||||
# }];
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
nixpkgs.config = { allowUnfree = true; };
|
||||
|
||||
users.users.jawz = {
|
||||
isNormalUser = true;
|
||||
@ -127,7 +123,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; [
|
||||
|
||||
@ -272,12 +270,17 @@ 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.python3Packages; [
|
||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||
@ -295,8 +298,7 @@ symbola
|
||||
src = ./scripts/download/.;
|
||||
doCheck = false;
|
||||
buildInputs = [ setuptools ];
|
||||
propagatedBuildInputs =
|
||||
[ pyyaml types-pyyaml ];
|
||||
propagatedBuildInputs = [ pyyaml types-pyyaml ];
|
||||
})
|
||||
(buildPythonApplication rec {
|
||||
pname = "classifier";
|
||||
@ -307,8 +309,7 @@ symbola
|
||||
};
|
||||
doCheck = false;
|
||||
buildInputs = [ setuptools ];
|
||||
propagatedBuildInputs =
|
||||
[ arrow ];
|
||||
propagatedBuildInputs = [ arrow ];
|
||||
})
|
||||
(buildPythonApplication rec {
|
||||
pname = "ffpb";
|
||||
@ -319,8 +320,7 @@ symbola
|
||||
};
|
||||
doCheck = false;
|
||||
buildInputs = [ setuptools ];
|
||||
propagatedBuildInputs =
|
||||
[ tqdm ];
|
||||
propagatedBuildInputs = [ tqdm ];
|
||||
})
|
||||
|
||||
]) ++ (with pkgs.bat-extras; [
|
||||
@ -346,6 +346,8 @@ symbola
|
||||
reading-strip # like putting a finger on every line I read
|
||||
tactile # window manager
|
||||
pano # clipboard manager
|
||||
blur-my-shell # make the overview more visually appealing
|
||||
# forge # window manager
|
||||
# ]) ++ (with unstable.pkgs.gnomeExtensions; [
|
||||
|
||||
]) ++ (with pkgs.nodePackages; [
|
||||
@ -355,7 +357,8 @@ symbola
|
||||
markdownlint-cli # Linter
|
||||
prettier # Linter
|
||||
pnpm # Package manager
|
||||
]); }; # <--- end of package list
|
||||
]);
|
||||
}; # <--- end of package list
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
@ -371,12 +374,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";
|
||||
@ -442,7 +448,8 @@ programs = {
|
||||
enable = true;
|
||||
config = {
|
||||
pager = "less -FR";
|
||||
theme = "base16"; };
|
||||
theme = "base16";
|
||||
};
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
@ -471,7 +478,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;
|
||||
@ -558,9 +566,7 @@ snapraid = {
|
||||
olderThan = 10;
|
||||
interval = "4:00";
|
||||
};
|
||||
parityFiles = [
|
||||
"/mnt/parity/snapraid.parity"
|
||||
];
|
||||
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||
extraConfig = ''
|
||||
autosave 50
|
||||
'';
|
||||
@ -593,9 +599,7 @@ programs = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
geary = {
|
||||
enable = true;
|
||||
};
|
||||
geary = { enable = true; };
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
@ -613,11 +617,7 @@ services = {
|
||||
fstrim.enable = true;
|
||||
btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [
|
||||
"/"
|
||||
"/mnt/disk1"
|
||||
"/mnt/disk2"
|
||||
];
|
||||
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
|
||||
};
|
||||
openssh = {
|
||||
enable = true;
|
||||
@ -627,12 +627,10 @@ services = {
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
startWhenNeeded = true;
|
||||
listenAddresses = [
|
||||
{
|
||||
listenAddresses = [{
|
||||
addr = "0.0.0.0";
|
||||
port = 25152;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
# udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||
emacs = {
|
||||
@ -653,23 +651,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";
|
||||
@ -699,9 +693,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;
|
||||
@ -714,10 +706,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;
|
||||
|
||||
@ -41,6 +41,7 @@ let
|
||||
open_firewall_ports = [
|
||||
80 # http
|
||||
443 # https
|
||||
6969 # HentaiAtHome
|
||||
25152 # ssh
|
||||
49494 # gerbera
|
||||
];
|
||||
@ -543,6 +544,8 @@ symbola
|
||||
reading-strip # like putting a finger on every line I read
|
||||
tactile # window manager
|
||||
pano # clipboard manager
|
||||
blur-my-shell # make the overview more visually appealing
|
||||
# forge # window manager
|
||||
# ]) ++ (with unstable.pkgs.gnomeExtensions; [
|
||||
#+end_src
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user