upgrade to nixos 23.05

This commit is contained in:
Vinzenz Schroeter 2023-08-26 22:37:34 +02:00
parent c1c59ed9e2
commit 4585904bdc
2 changed files with 64 additions and 75 deletions

View file

@ -9,7 +9,12 @@
./home.nix ./home.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-12.2.3"
];
};
boot.loader = { boot.loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
@ -73,9 +78,6 @@
# Configure keymap in X11 # Configure keymap in X11
layout = "de"; layout = "de";
xkbVariant = ""; xkbVariant = "";
# Enable touchpad support (enabled default in most desktopManager).
# libinput.enable = true;
}; };
# Enable CUPS to print documents. # Enable CUPS to print documents.
@ -84,7 +86,7 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
openssh = { openssh = {
enable = true; enable = true;
permitRootLogin = "no"; settings.PermitRootLogin = "no";
}; };
}; };
@ -134,17 +136,21 @@
dates = "00:30"; dates = "00:30";
}; };
programs.git = { programs = {
git = {
enable = true; enable = true;
package = pkgs.gitFull; package = pkgs.gitFull;
}; };
programs.steam = { steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
}; };
zsh.enable = true;
};
environment = { environment = {
pathsToLink = ["/share/zsh"]; pathsToLink = ["/share/zsh"];

View file

@ -3,13 +3,6 @@
pkgs, pkgs,
... ...
}: { }: {
# override insync build version
nixpkgs.config.packageOverrides = pkgs: {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/0fa91456d2f6dfb9cd4008e81c89c2fec8512415.tar.gz) {
config = config.nixpkgs.config;
};
};
# Define user account # Define user account
users.users.vinzenz = { users.users.vinzenz = {
isNormalUser = true; isNormalUser = true;
@ -36,14 +29,12 @@
EDITOR = "nano"; EDITOR = "nano";
}; };
packages = with pkgs; packages = with pkgs; [
[] ## Apps
# Apps
++ [
keepassxc keepassxc
steam steam
wine-staging wine-staging
my.insync-v3 insync
# gnome-secrets # gnome-secrets
tdesktop tdesktop
lutris lutris
@ -53,26 +44,20 @@
wireguard-tools wireguard-tools
# steamlink # steamlink
element-desktop element-desktop
youtube-music # youtube-music
] etcher
# system monitoring ## system monitoring
++ [
btop
iotop iotop
radeontop radeontop
lsof lsof
wirelesstools wirelesstools
# lm-sensors # lm-sensors
] ## command line niceness
# command line niceness
++ [
tldr tldr
powerline powerline
powerline-fonts powerline-fonts
thefuck thefuck
] ## development
# development
++ [
dotnet-sdk_7 dotnet-sdk_7
# gnome workbench # gnome workbench
jetbrains.rider jetbrains.rider
@ -102,7 +87,6 @@
home-manager.enable = true; home-manager.enable = true;
firefox.enable = true; firefox.enable = true;
atuin.enable = true;
command-not-found.enable = true; command-not-found.enable = true;
dircolors.enable = true; dircolors.enable = true;
fzf.enable = true; fzf.enable = true;
@ -115,6 +99,8 @@
enableAutosuggestions = true; enableAutosuggestions = true;
enableVteIntegration = true; enableVteIntegration = true;
initExtra = "eval \"$(direnv hook zsh)\"";
shellAliases = { shellAliases = {
my-update = "sudo nixos-rebuild switch"; my-update = "sudo nixos-rebuild switch";
my-fmt = "alejandra ."; my-fmt = "alejandra .";
@ -131,8 +117,6 @@
theme = "agnoster"; theme = "agnoster";
plugins = ["git" "sudo" "docker" "systemadmin" "thefuck"]; plugins = ["git" "sudo" "docker" "systemadmin" "thefuck"];
}; };
initExtra = "eval \"$(direnv hook zsh)\"";
}; };
git = { git = {
@ -167,14 +151,10 @@
vscode-extensions.ms-python.python vscode-extensions.ms-python.python
]; ];
userSettings = { userSettings = {
"files.insertFinalNewline" = true;
"git.autofetch" = true; "git.autofetch" = true;
"update.mode" = "none"; "update.mode" = "none";
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace"; "editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true; "editor.fontLigatures" = true;
"[nix]" = {
"editor.tabSize" = 2;
};
"redhat.telemetry.enabled" = false; "redhat.telemetry.enabled" = false;
"markdown.extension.tableFormatter.normalizeIndentation" = true; "markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false; "markdown.extension.toc.orderedList" = false;
@ -234,6 +214,9 @@
indent_style = "space"; indent_style = "space";
indent_size = 4; indent_size = 4;
}; };
"*.nix" = {
indent_size = 2;
};
}; };
}; };
}; };