1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

finalised version with home-manager in system configuration

Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
This commit is contained in:
Stefan Ellmauthaler 2021-10-21 23:42:04 +02:00
parent e3930332a4
commit a39a7256f0
3 changed files with 4 additions and 42 deletions

View File

@ -2,15 +2,16 @@
## Installing on a system: ## Installing on a system:
* setup the filesystem as you see fit
* run `nixos-generate-config --root /mnt`
* create a new folder in machine for the system configuration * create a new folder in machine for the system configuration
* create a symlink in the machine folder to the actual machine, called current * create a symlink in the machine folder to the actual machine, called current
> e.g. $/etc/nixos/machine/> ln -s nucturne/ current > e.g. $/etc/nixos/machine/> ln -s nucturne/ current
* add home-manager channel to the channel list (nix-channel add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manage)
* install the system (nixos-install --no-root-passwd)
## Steps to fully finish home-setup: ## Steps to fully finish home-setup:
* add home-manager channel to private channel-list (nix-channel add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager)
* install home-manager (nix-shell '<home-manager>' -A install)
* generate home-instance
* add unlock-secret to secret-store (secret-tool store --label='keepassxc' keepass unlock) * add unlock-secret to secret-store (secret-tool store --label='keepassxc' keepass unlock)
* add certs and keyfiles * add certs and keyfiles

View File

@ -1,38 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/da267a3c-34e3-4218-933f-10738ee61eb6";
fsType = "ext4";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/9ebd7aff-629b-449b-83d8-6381a04eb708";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/DE6D-C383";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/0069f1fa-dd8e-4c0a-8f01-a576af29909e"; }
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}

View File

@ -1 +0,0 @@
stel-xps/