Add disko config as parameter in flake system settings
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -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 --- #
|
||||||
|
@@ -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 = {
|
||||||
|
Reference in New Issue
Block a user