yolo
This commit is contained in:
parent
96095790cd
commit
3884eb2f82
9 changed files with 162 additions and 7 deletions
|
@ -60,10 +60,11 @@
|
||||||
./hosts/microwave
|
./hosts/microwave
|
||||||
./modules/basic-tools.nix
|
./modules/basic-tools.nix
|
||||||
./modules/binary-caches.nix
|
./modules/binary-caches.nix
|
||||||
|
./modules/chromium.nix
|
||||||
./modules/devtools.nix
|
./modules/devtools.nix
|
||||||
./modules/emacs.nix
|
./modules/emacs.nix
|
||||||
./modules/gnupg.nix
|
./modules/gnupg.nix
|
||||||
./modules/graphical.nix
|
./modules/gnome.nix
|
||||||
./modules/hw-accel-intel.nix
|
./modules/hw-accel-intel.nix
|
||||||
./modules/mail
|
./modules/mail
|
||||||
./modules/radio.nix
|
./modules/radio.nix
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
kicad
|
kicad
|
||||||
gimp
|
gimp
|
||||||
inkscape
|
inkscape
|
||||||
(xfce.thunar.override { thunarPlugins = with xfce; [ thunar-volman thunar-archive-plugin ];})
|
#(xfce.thunar.override { thunarPlugins = with xfce; [ thunar-volman thunar-archive-plugin ];})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@
|
||||||
"plugdev"
|
"plugdev"
|
||||||
"dialout"
|
"dialout"
|
||||||
"bluetooth"
|
"bluetooth"
|
||||||
|
"networkmanager"
|
||||||
];
|
];
|
||||||
group = "users";
|
group = "users";
|
||||||
home = "/home/grue";
|
home = "/home/grue";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
./network.nix
|
./stateful-networking.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
30
hosts/microwave/stateful-networking.nix
Normal file
30
hosts/microwave/stateful-networking.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ pkgs, config, ... }: {
|
||||||
|
networking = {
|
||||||
|
hostName = "microwave"; # Define your hostname.
|
||||||
|
hostId = "7da4f1e6";
|
||||||
|
firewall.enable = true;
|
||||||
|
wireguard.enable = true;
|
||||||
|
# wireless.iwd.enable = true;
|
||||||
|
# networkmanager.wifi.backend = "iwd";
|
||||||
|
};
|
||||||
|
|
||||||
|
# fix networkmanager wireguard
|
||||||
|
networking.firewall = {
|
||||||
|
# if packets are still dropped, they will show up in dmesg
|
||||||
|
logReversePathDrops = true;
|
||||||
|
# wireguard trips rpfilter up
|
||||||
|
extraCommands = ''
|
||||||
|
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
|
||||||
|
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
|
||||||
|
'';
|
||||||
|
extraStopCommands = ''
|
||||||
|
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
|
||||||
|
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
dnssec = "allow-downgrade";
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,8 +14,15 @@
|
||||||
# nix
|
# nix
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
|
# julia
|
||||||
|
julia-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
|
## Julia
|
||||||
|
environment.variables = {
|
||||||
|
JULIA_NUM_THREADS = "8";
|
||||||
|
};
|
||||||
|
|
||||||
## direnv
|
## direnv
|
||||||
programs.bash.interactiveShellInit = ''
|
programs.bash.interactiveShellInit = ''
|
||||||
eval "$(direnv hook bash)"
|
eval "$(direnv hook bash)"
|
||||||
|
|
116
modules/gnome.nix
Normal file
116
modules/gnome.nix
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
celluloid
|
||||||
|
gnome.gnome-boxes
|
||||||
|
gnome.gnome-tweaks
|
||||||
|
nextcloud-client
|
||||||
|
amberol
|
||||||
|
firefox-wayland
|
||||||
|
element-desktop
|
||||||
|
wl-clipboard
|
||||||
|
pulseaudioFull
|
||||||
|
screen-message
|
||||||
|
qbittorrent
|
||||||
|
dino
|
||||||
|
gnome.gnome-terminal
|
||||||
|
#gnome-console
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
gnome.totem
|
||||||
|
gnome.geary
|
||||||
|
gnome.gnome-music
|
||||||
|
gnome-console
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
services.gnome = {
|
||||||
|
evolution-data-server.enable = true;
|
||||||
|
gnome-keyring.enable = true;
|
||||||
|
gnome-online-accounts.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
seahorse.enable = true;
|
||||||
|
gnupg.agent.pinentryFlavor = "gnome3";
|
||||||
|
evolution = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ pkgs.evolution-ews ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
qt5 = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gnome";
|
||||||
|
style = "adwaita-dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
displayManager.gdm = {
|
||||||
|
enable = true;
|
||||||
|
wayland = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable sound.
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
hardware.pulseaudio = {
|
||||||
|
enable = false;
|
||||||
|
zeroconf.discovery.enable = true;
|
||||||
|
extraClientConf = ''
|
||||||
|
autospawn=yes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh.vteIntegration = true;
|
||||||
|
programs.bash.vteIntegration = true;
|
||||||
|
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
monoid
|
||||||
|
font-awesome
|
||||||
|
dejavu_fonts
|
||||||
|
julia-mono
|
||||||
|
uw-ttyp0
|
||||||
|
gohufont
|
||||||
|
spleen
|
||||||
|
terminus_font
|
||||||
|
creep
|
||||||
|
corefonts
|
||||||
|
dina-font
|
||||||
|
fira
|
||||||
|
fira-mono
|
||||||
|
hack-font
|
||||||
|
liberation_ttf
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk
|
||||||
|
noto-fonts-emoji
|
||||||
|
noto-fonts-extra
|
||||||
|
proggyfonts
|
||||||
|
symbola
|
||||||
|
open-sans
|
||||||
|
twemoji-color-font
|
||||||
|
twitter-color-emoji
|
||||||
|
];
|
||||||
|
|
||||||
|
fonts.enableDefaultFonts = true;
|
||||||
|
fonts.fontconfig = {
|
||||||
|
enable = true;
|
||||||
|
allowBitmaps = true;
|
||||||
|
useEmbeddedBitmaps = true;
|
||||||
|
defaultFonts.emoji = [
|
||||||
|
"Twitter Color Emoji"
|
||||||
|
"Noto Color Emoji"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
virt-manager
|
virt-manager
|
||||||
|
bridge-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, cmake, openssl, pkgconfig, wrapQtAppsHook, fetchFromGithub }: {
|
{ stdenv, lib, cmake, openssl, pkgconfig, wrapQtAppsHook, fetchFromGithub }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "imhex";
|
pname = "imhex";
|
||||||
version = "1.24.3";
|
version = "1.24.3";
|
||||||
|
@ -9,9 +9,8 @@
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = lib.fakeSha256;
|
sha256 = lib.fakeSha256;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
nariveBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue