[TASK] Add home-manager

This commit is contained in:
Sebastian Fischer 2026-02-05 21:29:11 +01:00
parent e8505da399
commit 8639459949
4 changed files with 19 additions and 20 deletions

View File

@ -6,7 +6,7 @@ sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils vir
Video QXL
configuration.nix services.spice-vdagentd.enable = true;
## Install
## Install inside nixos
sudo -i
@ -27,8 +27,11 @@ mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
swapon /dev/sda2
nixos-generate-config --root /mnt
vi /mnt/etc/nixos/configuration.nix
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz home-manager
sudo nix-channel --update
https://nixos.org/manual/nixos/stable/

View File

@ -116,9 +116,6 @@
isNormalUser = true;
description = "Sebastian Fischer";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};
# Install firefox.

View File

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
@ -9,14 +5,16 @@
./hardware-configuration.nix
./common.nix
# ./vm.nix
./home.nix
<home-manager/nixos>
];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.11"; # Did you read the comment?
# Home Manager Konfiguration
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# Dein(e) Benutzer mit Home Manager
home-manager.users.sebastian = import ./home.nix;
system.stateVersion = "25.11";
nixpkgs.config.allowUnfree = true;
}

View File

@ -1,9 +1,10 @@
# In deiner home.nix
{ pkgs, ... }:
{ config, pkgs, ... }:
{
home.stateVersion = "25.11";
home.packages = with pkgs; [
rustdesk
# deine anderen Pakete...
];
}