Migrate to 21.05 on federispitz

This commit is contained in:
Fabian Hauser 2021-06-06 14:26:02 +02:00
parent 58987f6eee
commit f7f7148713
8 changed files with 28 additions and 18 deletions

View file

@ -9,6 +9,7 @@
"google-chrome" "google-chrome"
"spotify" "spotify"
"spotify-unwrapped"
"skypeforlinux" "skypeforlinux"
"slack" "slack"
"teams" "teams"

View file

@ -10,25 +10,29 @@
numlockx # TODO: Does this work? numlockx # TODO: Does this work?
lxappearance lxappearance
] ++ [ # Networking ] ++ [ # Networking
gnome3.networkmanager-openconnect gnome.networkmanager-openconnect
] ++ [ # Various ] ++ [ # Various
xfce.thunar xfce.thunar
xfce.thunar-archive-plugin xfce.thunar-archive-plugin
xfce.xfce4-appfinder # xfce.thunar-volman # needed? xfce.xfce4-appfinder # xfce.thunar-volman # needed?
xfce.terminal xfce.terminal
gnome3.gnome-screenshot gnome.gnome-screenshot
pinentry-gtk2 # Required by gnupg pinentry-gtk2 # Required by gnupg
]; ];
programs = { programs = {
gnome-terminal.enable = false; gnome-terminal.enable = false;
evolution = {
enable = true;
plugins = [ pkgs.evolution-ews ];
};
geary.enable = false; geary.enable = false;
light.enable = true; light.enable = true;
dconf.enable = true; dconf.enable = true;
}; };
services.gnome3 = { services.gnome = {
# TODO: Do this manually and not all at once. # TODO: Do this manually and not all at once.
core-utilities.enable = true; core-utilities.enable = true;
core-os-services.enable = true; core-os-services.enable = true;

View file

@ -22,7 +22,7 @@
bluetooth = { bluetooth = {
enable = true; enable = true;
package = pkgs.bluezFull; package = pkgs.bluezFull;
config.General.Enable = "Source,Sink,Media,Socket"; settings.General.Enable = "Source,Sink,Media,Socket";
}; };
}; };

View file

@ -11,7 +11,7 @@
extremetuxracer extremetuxracer
zeroad zeroad
] ++ (with pkgs.gnome3; [ # Selection of gnome3 games ] ++ (with pkgs.gnome; [ # Selection of gnome games
five-or-more five-or-more
four-in-a-row four-in-a-row
gnome-chess gnome-chess

View file

@ -2,7 +2,7 @@
home-manager.users.fhauser.services.redshift = { home-manager.users.fhauser.services.redshift = {
enable = true; enable = true;
package = pkgs.redshift-wlr; package = pkgs.redshift-wlr;
brightness.night = "0.9"; settings.redshift.brightness-night = "0.9";
temperature.day = 6300; temperature.day = 6300;
temperature.night = 5500; temperature.night = 5500;

View file

@ -2,7 +2,7 @@
# environment.systemPackages = with pkgs; [ polkit_gnome ]; #TODO: Needed? # environment.systemPackages = with pkgs; [ polkit_gnome ]; #TODO: Needed?
programs.sway.enable = true; programs.sway.enable = true;
services.gnome3.gnome-remote-desktop.enable = true; services.gnome.gnome-remote-desktop.enable = true;
environment.systemPackages = with pkgs; [ pipewire_0_2 ]; environment.systemPackages = with pkgs; [ pipewire_0_2 ];
systemd.user.services.pipewire.environment.XDG_CURRENT_DESKTOP = "sway"; systemd.user.services.pipewire.environment.XDG_CURRENT_DESKTOP = "sway";
systemd.user.services.xdg-desktop-portal-wlr.environment.XDG_CURRENT_DESKTOP = systemd.user.services.xdg-desktop-portal-wlr.environment.XDG_CURRENT_DESKTOP =
@ -14,12 +14,13 @@
Install.WantedBy = lib.mkForce [ "sway-session.target" ]; Install.WantedBy = lib.mkForce [ "sway-session.target" ];
Unit.PartOf = lib.mkForce [ "sway-session.target" ]; Unit.PartOf = lib.mkForce [ "sway-session.target" ];
}; };
# TODO: active screen with -m $active_screen
bemenuLauncher = pkgs.writeScriptBin "bemenuLauncher" '' bemenuLauncher = pkgs.writeScriptBin "bemenuLauncher" ''
#!${pkgs.stdenv.shell} #!${pkgs.stdenv.shell}
active_screen=$(swaymsg -r -t get_outputs | \ #active_screen=$(swaymsg -r -t get_outputs | \
${pkgs.jq}/bin/jq '. [] | select (.focused == true) | .name | split ("-") | last') # ${pkgs.jq}/bin/jq '. [] | select (.focused == true) | .name | split ("-") | last')
${pkgs.dmenu}/bin/dmenu_path | \ ${pkgs.dmenu}/bin/dmenu_path | \
${pkgs.bemenu}/bin/bemenu -m $active_screen --list 20 --ignorecase --prompt 'Start: ' | \ ${pkgs.bemenu}/bin/bemenu --list 20 --ignorecase --prompt 'Start: ' | \
xargs swaymsg exec -- xargs swaymsg exec --
''; '';
homeManagerConfig = config.home-manager.users.fhauser; homeManagerConfig = config.home-manager.users.fhauser;
@ -28,7 +29,7 @@
sway-contrib.grimshot sway-contrib.grimshot
wl-clipboard wl-clipboard
libappindicator libappindicator
gnome3.defaultIconTheme gnome.defaultIconTheme
gnome2.gnome-icon-theme gnome2.gnome-icon-theme
hicolor-icon-theme # TODO: Move these requirements? hicolor-icon-theme # TODO: Move these requirements?
]; ];

View file

@ -8,16 +8,20 @@
]; ];
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" "qmi_wwan" ]; # TODO: qmi_wwan required?
environment.systemPackages = with pkgs; [ modemmanager libmbim libqmi ]; # TODO: this should not be required
# Ignore Alcor smartcard (gpg is not very smart) # Ignore Realtek smartcard (gpg is not very smart)
# See https://ludovicrousseau.blogspot.com/2015/12/remove-andor-customize-pcsc-reader-names.html # See https://ludovicrousseau.blogspot.com/2015/12/remove-andor-customize-pcsc-reader-names.html
#systemd.services.pcscd.environment.PCSCLITE_FILTER_IGNORE_READER_NAMES = systemd.services.pcscd.environment.PCSCLITE_FILTER_IGNORE_READER_NAMES =
# "Alcor"; "Realtek";
hardware.video.hidpi.enable = true; hardware.video.hidpi.enable = true;
# Power configuration
services.tlp.enable = true;
services.power-profiles-daemon.enable = false;
# CPU Configuration # CPU Configuration
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
services.throttled.enable = true; services.throttled.enable = true;

View file

@ -37,6 +37,6 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "20.09"; # Did you read the comment? system.stateVersion = "21.05"; # Did you read the comment?
} }