igor: Switch to disko config
This commit is contained in:
parent
3cf1677ba8
commit
00d33dad5a
2 changed files with 67 additions and 36 deletions
|
|
@ -6,7 +6,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./disko-config.nix
|
||||||
../../modules/security.nix
|
../../modules/security.nix
|
||||||
../../modules/nix-config.nix
|
../../modules/nix-config.nix
|
||||||
../../modules/timezone.nix
|
../../modules/timezone.nix
|
||||||
|
|
@ -23,6 +25,8 @@
|
||||||
# Define on which hard drive you want to install Grub.
|
# Define on which hard drive you want to install Grub.
|
||||||
config.boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only
|
config.boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only
|
||||||
|
|
||||||
|
config.security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
config.networking = {
|
config.networking = {
|
||||||
hostName = "igor";
|
hostName = "igor";
|
||||||
domain = "failco.de";
|
domain = "failco.de";
|
||||||
|
|
@ -91,8 +95,23 @@
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
config.services.libinput.enable = true;
|
config.services.libinput.enable = true;
|
||||||
|
|
||||||
|
config.services.mysql = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.mariadb;
|
||||||
|
ensureUsers = [
|
||||||
|
{
|
||||||
|
name = "mediathekview";
|
||||||
|
ensurePermissions = {
|
||||||
|
"mediathekview.*" = "ALL PERMISSIONS";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
config.programs.firefox.enable = true;
|
config.programs.firefox.enable = true;
|
||||||
config.programs.git.enable = true;
|
config.programs.git.enable = true;
|
||||||
|
config.programs.mosh.enable = true;
|
||||||
|
config.programs.nm-applet.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
config.users.users.alex = {
|
config.users.users.alex = {
|
||||||
|
|
@ -102,12 +121,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config.environment.systemPackages = with pkgs; [
|
config.environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
firefox
|
dolphin
|
||||||
dolphin
|
waybar
|
||||||
waybar
|
hyprpaper
|
||||||
hyprpaper
|
wofi
|
||||||
wofi
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config.programs.hyprland = {
|
config.programs.hyprland = {
|
||||||
|
|
|
||||||
|
|
@ -1,47 +1,60 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ehci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
"rtsx_pci_sdmmc"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
# fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
# { device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
||||||
fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
options = [ "subvol=rootfs" ];
|
# options = [ "subvol=rootfs" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/.swapvol" =
|
# fileSystems."/.swapvol" =
|
||||||
{ device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
# { device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
||||||
fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
options = [ "subvol=swap" ];
|
# options = [ "subvol=swap" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/boot" =
|
# fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/2EDA-47FD";
|
# { device = "/dev/disk/by-uuid/2EDA-47FD";
|
||||||
fsType = "vfat";
|
# fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
# options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/home" =
|
# fileSystems."/home" =
|
||||||
{ device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
# { device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
||||||
fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
options = [ "subvol=home" ];
|
# options = [ "subvol=home" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/nix" =
|
# fileSystems."/nix" =
|
||||||
{ device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
# { device = "/dev/disk/by-uuid/e7720a57-f96a-4f37-a2ad-43527868418c";
|
||||||
fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
options = [ "subvol=nix" ];
|
# options = [ "subvol=nix" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue