flake: start refactoring
This commit is contained in:
parent
4b8923b5f5
commit
8b4e41c968
8 changed files with 62 additions and 76 deletions
31
modules/nixos/system/boot.nix
Normal file
31
modules/nixos/system/boot.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
options.settings.system.boot = {
|
||||
windows.enable = lib.mkEnableOption "Enable windows dual boot";
|
||||
};
|
||||
|
||||
config = {
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.edk2-uefi-shell.enable = true;
|
||||
systemd-boot.configurationLimit = 10;
|
||||
systemd-boot.editor = false;
|
||||
|
||||
systemd-boot.windows = lib.mkIf config.settings.system.boot.windows.enable {
|
||||
"11" = {
|
||||
title = "Windows";
|
||||
efiDeviceHandle = "FS0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
modules/nixos/system/locale.nix
Normal file
26
modules/nixos/system/locale.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "it_IT.UTF-8";
|
||||
LC_IDENTIFICATION = "it_IT.UTF-8";
|
||||
LC_MEASUREMENT = "it_IT.UTF-8";
|
||||
LC_MONETARY = "it_IT.UTF-8";
|
||||
LC_NAME = "it_IT.UTF-8";
|
||||
LC_NUMERIC = "it_IT.UTF-8";
|
||||
LC_PAPER = "it_IT.UTF-8";
|
||||
LC_TELEPHONE = "it_IT.UTF-8";
|
||||
LC_TIME = "it_IT.UTF-8";
|
||||
};
|
||||
|
||||
console.keyMap = "it";
|
||||
|
||||
services.xserver.xkb = {
|
||||
layout = "it";
|
||||
variant = "";
|
||||
};
|
||||
}
|
||||
9
modules/nixos/system/nix.nix
Normal file
9
modules/nixos/system/nix.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue