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,15 +136,19 @@
dates = "00:30"; dates = "00:30";
}; };
programs.git = { programs = {
enable = true; git = {
package = pkgs.gitFull; enable = true;
}; 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 = {

107
home.nix
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,54 +29,46 @@
EDITOR = "nano"; EDITOR = "nano";
}; };
packages = with pkgs; packages = with pkgs; [
[] ## Apps
# Apps keepassxc
++ [ steam
keepassxc wine-staging
steam insync
wine-staging # gnome-secrets
my.insync-v3 tdesktop
# gnome-secrets lutris
tdesktop amberol
lutris simple-scan
amberol gnome.gpaste
simple-scan wireguard-tools
gnome.gpaste # steamlink
wireguard-tools element-desktop
# steamlink # youtube-music
element-desktop etcher
youtube-music ## system monitoring
] iotop
# system monitoring radeontop
++ [ lsof
btop wirelesstools
iotop # lm-sensors
radeontop ## command line niceness
lsof tldr
wirelesstools powerline
#lm-sensors powerline-fonts
] thefuck
# command line niceness ## development
++ [ dotnet-sdk_7
tldr # gnome workbench
powerline jetbrains.rider
powerline-fonts alejandra
thefuck arduino
] uucp
# development screen
++ [ jetbrains.pycharm-professional
dotnet-sdk_7 kdiff3
# gnome workbench docker
jetbrains.rider ];
alejandra
arduino
uucp
screen
jetbrains.pycharm-professional
kdiff3
docker
];
file.".nanorc".text = '' file.".nanorc".text = ''
set linenumbers set linenumbers
@ -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;
};
}; };
}; };
}; };