[TASK] Add home-manager
This commit is contained in:
parent
e8505da399
commit
8639459949
@ -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/
|
||||
|
||||
@ -37,4 +40,4 @@ sudo nixos-rebuild switch
|
||||
### cleanup
|
||||
sudo nix-collect-garbage -d
|
||||
### optimize & cleanup
|
||||
sudo nix-store --optimise && sudo nix-collect-garbage -d
|
||||
sudo nix-store --optimise && sudo nix-collect-garbage -d
|
||||
|
||||
@ -116,9 +116,6 @@
|
||||
isNormalUser = true;
|
||||
description = "Sebastian Fischer";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
|
||||
@ -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. It‘s 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;
|
||||
}
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
# In deiner home.nix
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
rustdesk
|
||||
# deine anderen Pakete...
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user