Add disko config as parameter in flake system settings

This commit is contained in:
Sravan Balaji
2024-03-24 10:01:48 -04:00
parent e6d273196e
commit da7bcecacd
2 changed files with 8 additions and 5 deletions

View File

@@ -16,11 +16,12 @@
let let
# --- SYSTEM SETTINGS --- # # --- SYSTEM SETTINGS --- #
systemSettings = { systemSettings = {
system = "x86_64-linux"; # System Architecture system = "x86_64-linux"; # System Architecture
hostname = "oryp7"; # Hostname hostname = "oryp7"; # Hostname
profile = "personal"; # Select a profile defined from profiles directory profile = "personal"; # Select a profile defined from profiles directory
timezone = "America/New_York"; # Time Zone timezone = "America/New_York"; # Time Zone
locale = "en_US.UTF-8"; # Locale locale = "en_US.UTF-8"; # Locale
diskoConfig = "luks-btrfs-subvolumes"; # Disko Partition Configuration
}; };
# --- USER SETTINGS --- # # --- USER SETTINGS --- #

View File

@@ -7,6 +7,8 @@
{ {
imports = [ imports = [
../../system/hardware-configuration.nix ../../system/hardware-configuration.nix
"${builtins.fetchTarball "https://github.com/nix-community/disko/archive/master.tar.gz"}/module.nix"
"../../disko/${systemSettings.diskoConfiguration}.nix"
]; ];
nix = { nix = {