more configuration for live environment
This commit is contained in:
@@ -22,12 +22,44 @@ in
|
||||
bootLoader.enable = true;
|
||||
};
|
||||
softwareCfg = {
|
||||
sysPkgs.enable = true;
|
||||
sysProgs.enable = true;
|
||||
sysServices.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs;[
|
||||
alsa-lib
|
||||
xwayland
|
||||
wayland
|
||||
alsa-utils
|
||||
bc
|
||||
cliphist
|
||||
git
|
||||
hyprpaper
|
||||
hyprpicker
|
||||
inetutils
|
||||
kitty
|
||||
lsof
|
||||
neofetch
|
||||
nh
|
||||
nix-output-monitor
|
||||
nix-prefetch-scripts
|
||||
nixos-option
|
||||
nix-search-cli
|
||||
nix-template
|
||||
nixfmt
|
||||
nvd
|
||||
pamixer
|
||||
pavucontrol
|
||||
playerctl
|
||||
usbutils
|
||||
vim
|
||||
jq
|
||||
wl-clipboard
|
||||
libnotify
|
||||
file
|
||||
];
|
||||
|
||||
users = {
|
||||
groups.persist = { };
|
||||
users = {
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# USAGE in your configuration.nix.
|
||||
# Update devices to match your hardware.
|
||||
{ device ? throw "Set this to your disk device, e.g. /dev/sda", root_size
|
||||
, nix_size, ... }: {
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
inherit device;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1M";
|
||||
type = "EF02"; # for grub MBR
|
||||
};
|
||||
ESP = {
|
||||
size = "1G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
nix = {
|
||||
size = "${nix_size}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "${root_size}";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
home = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/home";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
76
hosts/live-env/disko.nix
Normal file
76
hosts/live-env/disko.nix
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
device ? throw "Set this to your disk device, e.g. /dev/sda",
|
||||
...
|
||||
}: {
|
||||
disko.devices = {
|
||||
disk.main = {
|
||||
inherit device;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
name = "boot";
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
esp = {
|
||||
name = "ESP";
|
||||
size = "750M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
swap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
root = {
|
||||
name = "root";
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "root_vg";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
lvm_vg = {
|
||||
root_vg = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
root = {
|
||||
size = "100%FREE";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
};
|
||||
|
||||
"/home/persistence" = {
|
||||
mountOptions = ["subvol=persist" "noatime"];
|
||||
mountpoint = "/home/persistence";
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
mountOptions = ["subvol=nix" "noatime"];
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,30 @@
|
||||
{ username, ... }:
|
||||
{ pkgs, username, ... }:
|
||||
|
||||
let
|
||||
scripts = with pkgs; [
|
||||
myScripts.icanhazip
|
||||
myScripts.invoke
|
||||
myScripts.runbg
|
||||
myScripts.splash
|
||||
myScripts.toolbelt
|
||||
myScripts.viconf
|
||||
myScripts.vipkg
|
||||
myScripts.fetchfromgh
|
||||
myScripts.garbage-collect
|
||||
myScripts.nsp
|
||||
myScripts.rebuild
|
||||
myScripts.chpaper
|
||||
myScripts.chscheme
|
||||
myScripts.keyring
|
||||
myScripts.mkscreenshots
|
||||
myScripts.moveonscreen
|
||||
myScripts.s_check
|
||||
myScripts.switchmon
|
||||
myScripts.git-compose
|
||||
myScripts.playshellsound
|
||||
myScripts.color-commit
|
||||
];
|
||||
in
|
||||
{
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
@@ -7,6 +32,26 @@
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nemo
|
||||
feh
|
||||
gtk3
|
||||
sqlite
|
||||
gimp
|
||||
imagemagick
|
||||
lolcat
|
||||
vesktop
|
||||
zsh
|
||||
zsh-syntax-highlighting
|
||||
zsh-history-substring-search
|
||||
zsh-autosuggestions
|
||||
libreoffice
|
||||
gtrash
|
||||
ripgrep
|
||||
toilet-extrafonts
|
||||
chafa
|
||||
] ++ scripts;
|
||||
|
||||
movOpts = {
|
||||
homeFiles.enable = true;
|
||||
envConfig = {
|
||||
@@ -15,7 +60,7 @@
|
||||
monitorNames = [ "eDP-1" ];
|
||||
workspaceLayout = "singlemonitor";
|
||||
};
|
||||
userPkgs.enable = true;
|
||||
userPkgs.enable = false;
|
||||
stylixHomeConfig.enable = true;
|
||||
gtkConfig.enable = true;
|
||||
starshipConfig.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user