fix (nixos)!: remove baremetal option
This commit is contained in:
parent
773ebc511d
commit
d5404e54aa
7 changed files with 35 additions and 48 deletions
|
|
@ -1,8 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ../../nixos ];
|
||||
|
||||
nixos-wsl.enable = true; # Enables wsl configuration (nixos/wsl.nix).
|
||||
imports = [ ../../nixos/wsl.nix ];
|
||||
|
||||
networking.hostName = "elistraee";
|
||||
system.stateVersion = "25.05";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
../../nixos
|
||||
../../nixos/baremetal.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
baremetal.enable = true; # Enables baremetal features (nixos/baremetal.nix).
|
||||
graphical.enable = true; # Enables graphical features (nixos/graphical.nix).
|
||||
graphical.enable = true;
|
||||
|
||||
boot.initrd.luks.devices."luks-374c6259-18c4-462b-9f30-9c9648de00ae".device =
|
||||
"/dev/disk/by-uuid/374c6259-18c4-462b-9f30-9c9648de00ae";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
../../nixos
|
||||
../../nixos/baremetal.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
baremetal.enable = true; # Enables baremetal features (nixos/baremetal.nix).
|
||||
graphical.enable = true; # Enables graphical features (nixos/graphical.nix).
|
||||
graphical.enable = true;
|
||||
|
||||
boot.initrd.luks.devices."luks-324ce23c-e630-42a1-8558-184e999053a5".device =
|
||||
"/dev/disk/by-uuid/324ce23c-e630-42a1-8558-184e999053a5";
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
options = {
|
||||
baremetal.enable = lib.mkEnableOption "enables bare metal features";
|
||||
};
|
||||
imports = [
|
||||
./common.nix
|
||||
./graphical.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf config.baremetal.enable {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
users.users.hms.extraGroups = [ "networkmanager" ];
|
||||
|
||||
services.printing.enable = true;
|
||||
|
|
@ -23,5 +25,4 @@
|
|||
};
|
||||
|
||||
console.keyMap = "fr";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./baremetal.nix
|
||||
./wsl.nix
|
||||
./graphical.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
system.autoUpgrade.enable = true;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
options = {
|
||||
graphical.enable = lib.mkEnableOption "enables graphical features";
|
||||
graphical.enable = lib.mkEnableOption "Enable graphical features";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.graphical.enable {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
options = {
|
||||
nixos-wsl.enable = lib.mkEnableOption "enables WSL support";
|
||||
};
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
config = lib.mkIf config.nixos-wsl.enable {
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "hms";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue