mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
first commit
This commit is contained in:
parent
695702d86e
commit
ecd6180813
2 changed files with 70 additions and 4 deletions
57
config-plasma.nix
Normal file
57
config-plasma.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Import other configuration modules
|
||||
# (hardware-configuration.nix is autogenerated upon installation)
|
||||
# paths in nix expressions are always relative the file which defines them
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
};
|
||||
|
||||
# Name your host machine
|
||||
networking.hostName = "NixOS-VM";
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Denver";
|
||||
|
||||
# Enter keyboard layout
|
||||
services.xserver.layout = "us";
|
||||
|
||||
# Define user accounts
|
||||
users.extraUsers =
|
||||
{
|
||||
aaronh =
|
||||
{
|
||||
home = "/home/aaronh";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
isNormalUser = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Install some packages
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
thunderbird
|
||||
firefox
|
||||
fish
|
||||
tilix
|
||||
];
|
||||
|
||||
# Enable the OpenSSH daemon
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Plasma
|
||||
services.xserver.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
# System
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.allowReboot = true;
|
||||
|
||||
}
|
17
install.sh
17
install.sh
|
@ -60,17 +60,26 @@ sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
|
|||
sudo cryptsetup luksOpen $rootName crypt-root
|
||||
|
||||
sudo mkfs.fat -F32 -n EFI $efiName # EFI partition
|
||||
sudo mkfs.ext4 -L root /dev/mapper/crypt-root # / partition
|
||||
mkfs.btrfs -L root /dev/mapper/crypt-root # /root partition
|
||||
sudo mkswap -L swap $swapName # swap partition
|
||||
|
||||
# 0. Mount the filesystems.
|
||||
sudo mount /dev/disk/by-label/root /mnt
|
||||
sudo swapon $swapName
|
||||
|
||||
# 1. Create directory to mount EFI partition.
|
||||
sudo mkdir /mnt/boot/
|
||||
# Create Subvolumes
|
||||
btrfs subvolume create /mnt/@
|
||||
btrfs subvolume create /mnt/@home
|
||||
|
||||
# 2.Mount the EFI partition.
|
||||
# 1. Create directory to mount partitions and subvolume
|
||||
mkdir /mnt/boot/
|
||||
mkdir /mnt/home/
|
||||
|
||||
# 2. Mount the subvolumes.
|
||||
mount -o noatime,commit=120,compress=zstd:10,space_cache,subvol=@ $rootName /mnt
|
||||
mount -o noatime,commit=120,compress=zstd:10,space_cache,subvol=@home $rootName /mnt/home
|
||||
|
||||
# 3. Mount the EFI partition.
|
||||
sudo mount $efiName /mnt/boot
|
||||
|
||||
# Generate Nix configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue