[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
|
Video QXL
|
||||||
configuration.nix services.spice-vdagentd.enable = true;
|
configuration.nix services.spice-vdagentd.enable = true;
|
||||||
|
|
||||||
## Install
|
## Install inside nixos
|
||||||
|
|
||||||
sudo -i
|
sudo -i
|
||||||
|
|
||||||
@ -27,8 +27,11 @@ mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
|
|||||||
|
|
||||||
swapon /dev/sda2
|
swapon /dev/sda2
|
||||||
|
|
||||||
|
|
||||||
nixos-generate-config --root /mnt
|
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/
|
https://nixos.org/manual/nixos/stable/
|
||||||
|
|
||||||
@ -37,4 +40,4 @@ sudo nixos-rebuild switch
|
|||||||
### cleanup
|
### cleanup
|
||||||
sudo nix-collect-garbage -d
|
sudo nix-collect-garbage -d
|
||||||
### optimize & cleanup
|
### 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;
|
isNormalUser = true;
|
||||||
description = "Sebastian Fischer";
|
description = "Sebastian Fischer";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [
|
|
||||||
# thunderbird
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Install firefox.
|
# 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, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -9,14 +5,16 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./common.nix
|
./common.nix
|
||||||
# ./vm.nix
|
# ./vm.nix
|
||||||
./home.nix
|
<home-manager/nixos>
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# Home Manager Konfiguration
|
||||||
# settings for stateful data, like file locations and database versions
|
home-manager.useGlobalPkgs = true;
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
home-manager.useUserPackages = true;
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
# Dein(e) Benutzer mit Home Manager
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
home-manager.users.sebastian = import ./home.nix;
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
# In deiner home.nix
|
# In deiner home.nix
|
||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
home.stateVersion = "25.11";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
rustdesk
|
rustdesk
|
||||||
# deine anderen Pakete...
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user