igor: Switch to disko config

This commit is contained in:
Alexander Kobjolke 2024-12-14 19:34:28 +01:00
parent 3cf1677ba8
commit 00d33dad5a
2 changed files with 67 additions and 36 deletions

View file

@ -6,7 +6,9 @@
{
imports = [
inputs.disko.nixosModules.disko
./hardware-configuration.nix
./disko-config.nix
../../modules/security.nix
../../modules/nix-config.nix
../../modules/timezone.nix
@ -23,6 +25,8 @@
# Define on which hard drive you want to install Grub.
config.boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only
config.security.sudo.wheelNeedsPassword = false;
config.networking = {
hostName = "igor";
domain = "failco.de";
@ -91,8 +95,23 @@
# Enable touchpad support (enabled default in most desktopManager).
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.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.
config.users.users.alex = {
@ -102,12 +121,11 @@
};
config.environment.systemPackages = with pkgs; [
alacritty
firefox
dolphin
waybar
hyprpaper
wofi
alacritty
dolphin
waybar
hyprpaper
wofi
];
config.programs.hyprland = {