mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 19:24:03 -06:00
Compare commits
7 commits
3108fa3aea
...
f201dc75a5
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f201dc75a5 | ||
c64c47303f | |||
![]() |
c3c0917a7b | ||
![]() |
120d2a2336 | ||
![]() |
9515e7a216 | ||
![]() |
144939bb98 | ||
![]() |
ce0a630a0c |
3 changed files with 97 additions and 28 deletions
|
@ -45,11 +45,11 @@
|
||||||
|
|
||||||
# Define user accounts
|
# Define user accounts
|
||||||
users.users.aaronh = {
|
users.users.aaronh = {
|
||||||
description = "Aaron Honeycutt";
|
description = "Aaron Honeycutt";
|
||||||
home = "/home/aaronh";
|
home = "/home/aaronh";
|
||||||
extraGroups = [ "wheel" "networkmanager" "adm"];
|
extraGroups = [ "wheel" "networkmanager" "adm"];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -58,29 +58,25 @@
|
||||||
|
|
||||||
# Install some packages
|
# Install some packages
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
avahi
|
avahi
|
||||||
dmidecode
|
dmidecode
|
||||||
fira
|
fira
|
||||||
firefox
|
firefox
|
||||||
git
|
git
|
||||||
git-lfs
|
git-lfs
|
||||||
helix
|
helix
|
||||||
libcamera
|
libcamera
|
||||||
lshw
|
lshw
|
||||||
restic
|
restic
|
||||||
roboto-slab
|
roboto-slab
|
||||||
syncthing
|
nvd
|
||||||
nvd
|
unzip
|
||||||
unzip
|
wget
|
||||||
wget
|
xz
|
||||||
xz
|
zlib
|
||||||
zlib
|
];
|
||||||
|
|
||||||
# Packages from Flake Inputs
|
|
||||||
#inputs.nix-software-center.packages.${system}.nix-software-center
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable/Disable hardware
|
# Enable/Disable hardware
|
||||||
## Turn off PulseAudio
|
## Turn off PulseAudio
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
# Add Disko for disk management
|
# Add Disko for disk management
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
./disko-config.nix
|
./disko-config.nix
|
||||||
|
./gnome.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
72
partitions/luks-lvm.nix
Normal file
72
partitions/luks-lvm.nix
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
{
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
main = {
|
||||||
|
type = "disk";
|
||||||
|
device = "/dev/sda";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
ESP = {
|
||||||
|
size = "1G";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
luks = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "crypted";
|
||||||
|
extraOpenArgs = [ ];
|
||||||
|
settings = {
|
||||||
|
# if you want to use the key for interactive login be sure there is no trailing newline
|
||||||
|
# for example use `echo -n "password" > /tmp/secret.key`
|
||||||
|
#keyFile = "/tmp/secret.key";
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
content = {
|
||||||
|
type = "lvm_pv";
|
||||||
|
vg = "pool";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lvm_vg = {
|
||||||
|
pool = {
|
||||||
|
type = "lvm_vg";
|
||||||
|
lvs = {
|
||||||
|
root = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
mountOptions = [
|
||||||
|
"defaults"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
home = {
|
||||||
|
size = "10M";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/home";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
raw = {
|
||||||
|
size = "10M";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue