Diskussion:Install-Party/NixOS: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Neuer Abschnitt →SnowflakeOS) |
|||
Zeile 10: | Zeile 10: | ||
== SnowflakeOS == | == SnowflakeOS == | ||
2023-02-13: | ; 2023-02-13: | ||
==== SnowflakeOS hardware-configuration.nix ==== | |||
: <code>less /etc/nixos/hardware-configuration.nix</code> | |||
<pre></pre> | |||
<pre> | |||
{ config, lib, pkgs, modulesPath, ... }: | |||
{ | |||
imports = | |||
[ (modulesPath + "/installer/scan/not-detected.nix") | |||
]; | |||
</pre> | |||
<pre> | |||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; | |||
boot.initrd.kernelModules = [ ]; | |||
boot.kernelModules = [ "kvm-intel" ]; | |||
boot.extraModulePackages = [ ]; | |||
</pre> | |||
<pre> | |||
fileSystems."/" = | |||
{ device = "/dev/disk/by-uuid/5273542a-08f3-4012-abc0-517ca8a0c5c7"; | |||
fsType = "ext4"; | |||
}; | |||
fileSystems."/boot/efi" = | |||
{ device = "/dev/disk/by-uuid/0F19-DD1A"; | |||
fsType = "vfat"; | |||
}; | |||
</pre> | |||
<pre> | |||
swapDevices = [ ]; | |||
</pre> | |||
<pre> | |||
networking.useDHCP = lib.mkDefault true; | |||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; | |||
</pre> | |||
<pre> | |||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | |||
</pre> | |||
<pre> | |||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; | |||
</pre> | |||
<pre> | |||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | |||
</pre> | |||
<pre> | |||
} | |||
</pre> | |||
==== SnowflakeOS configuration.nix ==== | |||
: <code>less /etc/nixos/configuration.nix</code> | : <code>less /etc/nixos/configuration.nix</code> |
Version vom 13. Februar 2023, 01:11 Uhr
deklarative Erstellungen von Partitionierung von Geräten für Massenspeicher
https://github.com/nix-community/disko
NixOS meets ZFS
- https://florianfranke.dev/posts/2020/03/installing-nixos-with-encrypted-zfs-on-a-netcup.de-root-server/
- https://nixos.wiki/wiki/ZFS
SnowflakeOS
- 2023-02-13
SnowflakeOS hardware-configuration.nix
less /etc/nixos/hardware-configuration.nix
{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ];
fileSystems."/" = { device = "/dev/disk/by-uuid/5273542a-08f3-4012-abc0-517ca8a0c5c7"; fsType = "ext4"; }; fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/0F19-DD1A"; fsType = "vfat"; };
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true; # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
SnowflakeOS configuration.nix
less /etc/nixos/configuration.nix
{ config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ];
system.stateVersion = "23.05"; # Did you read the comment?
nix.extraOptions = '' experimental-features = nix-command flakes '';
# Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define your hostname. networking.hostName = "snowflakeos";
# Enable networking networking.networkmanager.enable = true;
# Set your time zone. time.timeZone = "Europe/Berlin";
# Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8";
# Set the keyboard layout. services.xserver.layout = "de"; console.useXkbConfig = true;
# Enable the X11 windowing system. services.xserver.enable = true;
# Enable the GNOME Desktop Environment. services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true;
# Enable CUPS to print documents. services.printing.enable = true;
# Enable sound with pipewire. sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; };
# Enable automatic login for the user. services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.user = "k"; # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229 systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false;
# Allow unfree packages nixpkgs.config.allowUnfree = true; environment.sessionVariables.NIXPKGS_ALLOW_UNFREE = "1"; environment.enableAllTerminfo = true;
# List packages installed in system profile. environment.systemPackages = with pkgs; [ ddate ];
powerManagement.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’. users.users."k" = { isNormalUser = true; description = "k-ot"; extraGroups = [ "wheel" "networkmanager" "dialout" ]; };
}