[TASK] Improve install with flakes

This commit is contained in:
Sebastian Fischer 2026-02-11 20:38:35 +01:00
parent b38ee2c8d6
commit 70a10c6b73
2 changed files with 5 additions and 4 deletions

View File

@ -150,7 +150,7 @@ nix-channel --add https://github.com/nix-community/home-manager/archive/release-
nix-channel --update nix-channel --update
# Konfiguration anwenden # Konfiguration anwenden
nixos-rebuild switch nixos-rebuild switch --option experimental-features "nix-command flakes"
reboot reboot
``` ```

View File

@ -1,7 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ # Include the results of the hardware scan. imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./common.nix ./common.nix
./mounts.nix ./mounts.nix
@ -11,12 +12,12 @@
<home-manager/nixos> <home-manager/nixos>
]; ];
# Home Manager Konfiguration # Home Manager configuration
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
# NixOS Version (nicht ändern nach Erstinstallation) # NixOS Version (don't change after first installation)
system.stateVersion = "25.11"; system.stateVersion = "25.11";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;