Merge branch 'master' of ssh://narwhal/nix-config

feat/kile-v2
Ricard Illa 2022-02-01 19:47:09 +01:00
commit 191f6b979d
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
7 changed files with 50 additions and 22 deletions

View File

@ -7,7 +7,8 @@
let let
home-manager = builtins.fetchTarball { home-manager = builtins.fetchTarball {
url = url =
"https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz"; # "https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
}; };
in { in {
imports = [ imports = [
@ -18,18 +19,18 @@ in {
home-manager.users.rilla = import home/capibara.nix; home-manager.users.rilla = import home/capibara.nix;
fileSystems = { #fileSystems = {
"/home/rilla/Music" = { # "/home/rilla/Music" = {
device = "narwhal:/music"; # device = "narwhal:/music";
fsType = "nfs"; # fsType = "nfs";
options = [ # options = [
"nfsvers=4" # "nfsvers=4"
"noauto" # "noauto"
"x-systemd.automount" # "x-systemd.automount"
"x-systemd.idle-timeout=1min" # "x-systemd.idle-timeout=1min"
]; # ];
}; # };
}; #};
environment.variables.NIXOS_CONFIG = environment.variables.NIXOS_CONFIG =
"/home/rilla/configs/nix-config/capibara.nix"; "/home/rilla/configs/nix-config/capibara.nix";

View File

@ -14,9 +14,13 @@ in {
# environment.systemPackages = [ ]; # environment.systemPackages = [ ];
environment.systemPackages = [ environment.systemPackages = [
choose-pass choose-pass
pkgs.ansible
pkgs.cheat
pkgs.coreutils-full pkgs.coreutils-full
pkgs.csvkit pkgs.csvkit
pkgs.curl pkgs.curl
pkgs.docker-client
pkgs.docker-machine
pkgs.fzf pkgs.fzf
pkgs.gnupg pkgs.gnupg
pkgs.google-cloud-sdk pkgs.google-cloud-sdk
@ -24,8 +28,10 @@ in {
pkgs.jq pkgs.jq
pkgs.mosh pkgs.mosh
pkgs.pass pkgs.pass
pkgs.pipenv
pkgs.ripgrep pkgs.ripgrep
pkgs.terraform pkgs.terraform
pkgs.vagrant
pkgs.wireguard pkgs.wireguard
pkgs.yubikey-personalization pkgs.yubikey-personalization
]; ];
@ -33,6 +39,7 @@ in {
# Use a custom configuration.nix location. # Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix"; environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix";
# environment.variables.DOCKER_HOST = "tcp://localhost:2375";
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
@ -58,7 +65,7 @@ in {
brewfile = true; brewfile = true;
noLock = true; noLock = true;
}; };
casks = [ "kmbmpdc" "librewolf" ]; casks = [ "kmbmpdc" "librewolf" "virtualbox" ];
brews = [ "mpd" "choose-gui" "vitetris" ]; brews = [ "mpd" "choose-gui" "vitetris" ];
taps = taps =
[ "homebrew/bundle" "homebrew/cask" "homebrew/core" "homebrew/services" ]; [ "homebrew/bundle" "homebrew/cask" "homebrew/core" "homebrew/services" ];

View File

@ -4,7 +4,7 @@
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
background_opacity = 0.9; window.opacity = 0.9;
colors = { colors = {
primary = { primary = {
background = "#282828"; background = "#282828";

View File

@ -1,5 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./nixos-common.nix ./desktop-sway ./alacritty ./theming ]; imports =
[ ./nixos-common.nix ./desktop-sway ./alacritty/capibara.nix ./theming ];
} }

View File

@ -50,6 +50,7 @@ in {
".cache" ".cache"
".config/Nextcloud" ".config/Nextcloud"
".config/chromium" ".config/chromium"
".config/kdeconnect"
".config/whatsapp-for-linux" ".config/whatsapp-for-linux"
".gnupg/private-keys-v1.d" ".gnupg/private-keys-v1.d"
".local/share/keyrings" ".local/share/keyrings"
@ -119,7 +120,9 @@ in {
file file
gimp gimp
gnumake gnumake
html-tidy
htop htop
j2cli
jq jq
killall killall
libnotify libnotify
@ -131,8 +134,10 @@ in {
networkmanagerapplet networkmanagerapplet
nextcloud-client nextcloud-client
pandoc pandoc
#pinentry
pv pv
ripgrep ripgrep
sassc
signify signify
sxiv sxiv
telnet telnet
@ -142,7 +147,10 @@ in {
services.syncthing.enable = true; services.syncthing.enable = true;
services.kdeconnect.enable = true; services.kdeconnect = {
enable = true;
indicator = true;
};
programs.bat = { programs.bat = {
enable = true; enable = true;
@ -168,6 +176,8 @@ in {
startInBackground = true; startInBackground = true;
}; };
services.network-manager-applet.enable = true;
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = {

View File

@ -28,8 +28,20 @@ in {
interfaces = { }; interfaces = { };
firewall = { firewall = {
# 51820 is used by wireguard
allowedUDPPorts = [ 51820 ]; allowedUDPPorts = [ 51820 ];
# 1714 - 1764 is used by kdeconnect
allowedTCPPortRanges = [{
from = 1714;
to = 1764;
}];
allowedUDPPortRanges = [{
from = 1714;
to = 1764;
}];
# if packets are still dropped, they will show up in dmesg # if packets are still dropped, they will show up in dmesg
logReversePathDrops = true; logReversePathDrops = true;
# wireguard trips rpfilter up # wireguard trips rpfilter up
@ -278,7 +290,6 @@ in {
"/etc/nixos" "/etc/nixos"
"/var/lib/libvirt" "/var/lib/libvirt"
]; ];
files = [ "/etc/wireguard/wg0" ];
}; };
}; };

View File

@ -5,12 +5,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
impermanence = builtins.fetchTarball {
url = "https://github.com/nix-community/impermanence/archive/master.tar.gz";
};
home-manager = builtins.fetchTarball { home-manager = builtins.fetchTarball {
url = url =
"https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz"; # "https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
}; };
in { in {
imports = [ imports = [