new nix version, Anno 1800 ports, plasma, fonts
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
# Enable flakes
|
# Enable flakes
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixVersions.stable;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
@ -121,14 +121,16 @@
|
|||||||
# Enable networking
|
# Enable networking
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
firewall.enable = true;
|
||||||
firewall.allowedTCPPorts = [ ];
|
firewall.allowedTCPPorts = [ ];
|
||||||
firewall.allowedTCPPortRanges = [ ];
|
firewall.allowedTCPPortRanges = [ ];
|
||||||
|
|
||||||
firewall.allowedUDPPorts = [ ];
|
firewall.allowedUDPPorts = [
|
||||||
|
18000 # Anno 1800
|
||||||
|
];
|
||||||
firewall.allowedUDPPortRanges = [ ];
|
firewall.allowedUDPPortRanges = [ ];
|
||||||
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# firewall.enable = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
@ -139,18 +141,20 @@
|
|||||||
# Sadly using this with gnome-session doesn't really work
|
# Sadly using this with gnome-session doesn't really work
|
||||||
# displayManager.startx.enable = true;
|
# displayManager.startx.enable = true;
|
||||||
|
|
||||||
# Plasma (X11)
|
# Plasma
|
||||||
# displayManager.sddm.enable = true;
|
# TODO: Had problems with wayland last time, hopefully I get it to work now
|
||||||
# desktopManager.plasma5.enable = true;
|
displayManager.sddm.enable = true;
|
||||||
# desktopManager.plasma5.runUsingSystemd = true;
|
desktopManager.plasma5.enable = true;
|
||||||
|
desktopManager.plasma5.runUsingSystemd = true;
|
||||||
|
|
||||||
# Gnome (Wayland)
|
# Gnome (Wayland)
|
||||||
displayManager.gdm.enable = true;
|
# NOTE: Not a fan of the overly simplistic nature, also made problems with the audio devices...
|
||||||
|
# displayManager.gdm.enable = true;
|
||||||
# I had problems with gdm defaulting to X11, after I added this it stopped although I don't know if this
|
# I had problems with gdm defaulting to X11, after I added this it stopped although I don't know if this
|
||||||
# was the sole reason
|
# was the sole reason
|
||||||
displayManager.defaultSession = "gnome";
|
# displayManager.defaultSession = "gnome";
|
||||||
displayManager.gdm.wayland = true; # This is actually the default
|
# displayManager.gdm.wayland = true; # This is actually the default
|
||||||
desktopManager.gnome.enable = true;
|
# desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
wacom.enable = true;
|
wacom.enable = true;
|
||||||
|
|
||||||
@ -163,23 +167,24 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs; [
|
extraPortals = with pkgs; [
|
||||||
# xdg-desktop-portal-wlr # For wlroots based desktops
|
# xdg-desktop-portal-wlr # For wlroots based desktops
|
||||||
# xdg-desktop-portal-gtk # Comes with gnome
|
xdg-desktop-portal-kde # Comes with Plasma
|
||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gtk # Comes with Gnome
|
||||||
|
xdg-desktop-portal-gnome # Comes with Gnome
|
||||||
];
|
];
|
||||||
# gtkUsePortal = true; # Deprecated
|
# gtkUsePortal = true; # Deprecated, don't use (gdm takes ages to load and other fishy stuff)
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = false; # Alsa, seems to conflict with PipeWire
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false; # Get off my lawn
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true; # We need this for low latency audio
|
jack.enable = true; # TODO: Was needed for low latency but probably not anymore (?) as Bitwig supports Pipewire now
|
||||||
|
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true; # Probably the default
|
||||||
media-session.enable = false;
|
media-session.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -187,33 +192,47 @@
|
|||||||
enableDefaultFonts = true; # Some default fonts for unicode coverage
|
enableDefaultFonts = true; # Some default fonts for unicode coverage
|
||||||
fontDir.enable = true; # Puts fonts to /run/current-system/sw/share/X11/fonts
|
fontDir.enable = true; # Puts fonts to /run/current-system/sw/share/X11/fonts
|
||||||
|
|
||||||
# Font packages go here, don't do this with HomeManager as I need the fonts in the fontdir for flatpak apps
|
# Font packages go here
|
||||||
|
# NOTE: Don't do this with HomeManager as I need the fonts in the fontdir for flatpak apps
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
|
# Mono fonts
|
||||||
victor-mono
|
victor-mono
|
||||||
|
jetbrains-mono
|
||||||
source-code-pro
|
source-code-pro
|
||||||
source-sans-pro
|
|
||||||
source-serif-pro
|
|
||||||
(pkgs.nerdfonts.override { fonts = [ "VictorMono" ]; })
|
(pkgs.nerdfonts.override { fonts = [ "VictorMono" ]; })
|
||||||
|
|
||||||
|
# Chinese fonts
|
||||||
source-han-mono
|
source-han-mono
|
||||||
source-han-sans
|
source-han-sans
|
||||||
source-han-serif
|
source-han-serif
|
||||||
|
noto-fonts-cjk-sans
|
||||||
|
noto-fonts-cjk-serif
|
||||||
wqy_zenhei
|
wqy_zenhei
|
||||||
wqy_microhei
|
wqy_microhei
|
||||||
# jetbrains-mono
|
|
||||||
# etBook
|
# Sans/Serif fonts
|
||||||
# overpass
|
|
||||||
cantarell-fonts
|
cantarell-fonts
|
||||||
|
source-sans-pro
|
||||||
|
source-serif-pro
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-extra
|
||||||
|
noto-fonts-emoji
|
||||||
|
|
||||||
|
# Some fonts from an old emacs config, not longer used
|
||||||
|
# etBook
|
||||||
|
# overpass
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: Check if this works
|
# TODO: Check if this works
|
||||||
fontconfig = {
|
# TODO: Conflicts with kde?
|
||||||
enable = true;
|
# fontconfig = {
|
||||||
defaultFonts = {
|
# enable = true;
|
||||||
serif = [ "Source Han Serif Regular" ];
|
# defaultFonts = {
|
||||||
sansSerif = [ "Source Han Sans Regular" ];
|
# serif = [ "Source Han Serif Regular" ];
|
||||||
monospace = [ "Source Han Mono Regular" ];
|
# sansSerif = [ "Source Han Sans Regular" ];
|
||||||
};
|
# monospace = [ "Source Han Mono Regular" ];
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
@ -251,31 +270,37 @@
|
|||||||
# Empty since we basically only need git + editor which is enabled below
|
# Empty since we basically only need git + editor which is enabled below
|
||||||
environment.systemPackages = with pkgs; [ ];
|
environment.systemPackages = with pkgs; [ ];
|
||||||
|
|
||||||
|
# NOTE: Gnome
|
||||||
# TODO: Identify all the crap
|
# TODO: Identify all the crap
|
||||||
# Remove these packages that come by default with GNOME
|
# Remove these packages that come by default with GNOME
|
||||||
environment.gnome.excludePackages = with pkgs.gnome; [
|
# environment.gnome.excludePackages = with pkgs.gnome; [
|
||||||
# epiphany # gnome webbrowser, could be good with new version
|
# # epiphany # gnome webbrowser, could be good with new version
|
||||||
# gnome-maps
|
# gnome-maps
|
||||||
gnome-contacts
|
# gnome-contacts
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# NOTE: Plasma
|
||||||
|
# TODO: Identify all the crap
|
||||||
|
services.xserver.desktopManager.plasma5.excludePackages = with pkgs.libsForQt5; [
|
||||||
];
|
];
|
||||||
|
|
||||||
# It is preferred to use the module (if it exists) over environment.systemPackages, as some extra configs are applied.
|
# It is preferred to use the module (if it exists) over environment.systemPackages, as some extra configs are applied.
|
||||||
# I would prefer to use HomeManager for some of these but the modules don't exist (yet)
|
# I would prefer to use HomeManager for some of these but the modules don't exist (yet)
|
||||||
programs = {
|
programs = {
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
dconf.enable = true;
|
dconf.enable = true; # NOTE: Also needed for Plasma Wayland (GTK theming)
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
thefuck.enable = true; # Not available in HomeManager
|
thefuck.enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
services = {
|
services = {
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
# TODO: Printer driver, Gnome printing
|
# TODO: Printing (driver etc.)
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
avahi.enable = true; # Network printers
|
avahi.enable = true; # Network printers
|
||||||
avahi.nssmdns = true;
|
avahi.nssmdns = true;
|
||||||
@ -283,23 +308,25 @@
|
|||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
|
|
||||||
|
# Trims the journal if too large
|
||||||
journald.extraConfig = ''
|
journald.extraConfig = ''
|
||||||
SystemMaxUse=50M
|
SystemMaxUse=50M
|
||||||
'';
|
'';
|
||||||
|
|
||||||
acpid.enable = true;
|
acpid.enable = true;
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
flatpak.enable = true; # Not quite the nix style but useful for bottles/proprietary stuff
|
flatpak.enable = true; # Not quite the nix style but useful for bottles/proprietary stuff/steam/gaming
|
||||||
fstrim.enable = true;
|
fstrim.enable = true; # SSD
|
||||||
fwupd.enable = true;
|
fwupd.enable = true; # Device firmware (I don't think I have any supported devices)
|
||||||
locate.enable = true; # Periodically update index
|
locate.enable = true; # Periodically update index
|
||||||
ntp.enable = true;
|
ntp.enable = true; # Clock sync
|
||||||
|
packagekit.enable = true; # KDE Discover/Gnome Software
|
||||||
|
|
||||||
# TODO: Find a way to organize this better as it's split from the Gnome module
|
# TODO: Find a way to organize this better as it's split from the Gnome module, Gnome system module?
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true; # TODO: Is probably also needed for Plasma (some apps require it)
|
||||||
gnome.sushi.enable = true;
|
# gnome.sushi.enable = true;
|
||||||
gnome.gnome-settings-daemon.enable = true;
|
# gnome.gnome-settings-daemon.enable = true;
|
||||||
gnome.gnome-online-accounts.enable = true; # Probably Gnome enables this
|
# gnome.gnome-online-accounts.enable = true; # Probably Gnome enables this
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
@ -310,11 +337,13 @@
|
|||||||
|
|
||||||
libvirtd.enable = true;
|
libvirtd.enable = true;
|
||||||
|
|
||||||
|
# NOTE: Pretty unusable as NVidia hardware acceleration is not supported...
|
||||||
# Follow steps from https://nixos.wiki/wiki/WayDroid
|
# Follow steps from https://nixos.wiki/wiki/WayDroid
|
||||||
# waydroid. enable = true;
|
# waydroid. enable = true;
|
||||||
# lxd.enable = true;
|
# lxd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NOTE: Current system was installed on 22.05, do not change
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
Reference in New Issue
Block a user