[generic] prettified code

This commit is contained in:
Simon Cornet 2024-04-03 23:26:46 +02:00
parent b8a1c357b5
commit 6f59763642
12 changed files with 22 additions and 23 deletions

View File

@ -95,7 +95,7 @@
# window # window
window = { window = {
opacity = 0.75; opacity = 0.75;
class = { class = {
general = "Alacritty"; general = "Alacritty";
instance = "Alacritty"; instance = "Alacritty";
}; };

View File

@ -3,10 +3,10 @@
# git # git
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Simon Cornet"; userName = "Simon Cornet";
userEmail = "simon@simoncor.net"; userEmail = "simon@simoncor.net";
aliases = { aliases = {
# commit + message # commit + message
cam = "commit -am"; cam = "commit -am";

View File

@ -3,7 +3,7 @@
# ssh # ssh
programs.ssh = { programs.ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = {
# general # general

View File

@ -23,7 +23,7 @@
# theme # theme
theme = { theme = {
name = "Catppuccin-Macchiato-Standard-Sky-Dark"; name = "Catppuccin-Macchiato-Standard-Sky-Dark";
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
accents = [ "sky" ]; accents = [ "sky" ];
size = "standard"; size = "standard";
@ -41,8 +41,8 @@
# xdg settings # xdg settings
xdg.configFile = { xdg.configFile = {
"gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets"; "gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css"; "gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css"; "gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
}; };
} }

View File

@ -5,7 +5,7 @@
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"]; autoconnect = ["qemu:///system"];
uris = ["qemu:///system"]; uris = ["qemu:///system"];
}; };
}; };
} }

View File

@ -9,6 +9,10 @@
enable = true; enable = true;
defaultApplications = { defaultApplications = {
# documents
"application/pdf" = ["org.gnome.Evince.desktop"];
"application/x-pdf" = ["org.gnome.Evince.desktop"];
# images # images
"image/bmp" = [ "org.gnome.Loupe.desktop" ]; "image/bmp" = [ "org.gnome.Loupe.desktop" ];
"image/gif" = [ "org.gnome.Loupe.desktop" ]; "image/gif" = [ "org.gnome.Loupe.desktop" ];

View File

@ -16,8 +16,8 @@
}; };
# make boot pretty # make boot pretty
boot.plymouth.enable = true; boot.plymouth.enable = true;
boot.kernelParams = [ "quiet" ]; boot.kernelParams = [ "quiet" ];
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
# make console pretty # make console pretty

View File

@ -8,7 +8,7 @@
}; };
# xdg portals # xdg portals
xdg.portal.enable = true; xdg.portal.enable = true;
xdg.portal.extraPortals = with pkgs; [ xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-wlr xdg-desktop-portal-wlr
]; ];
@ -24,7 +24,7 @@
}; };
# gnome # gnome
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
# hyprland # hyprland

View File

@ -5,8 +5,7 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# bootloader # bootloader
boot.extraModulePackages = [ ]; boot.initrd.kernelModules = [ "kvm-intel" ];
boot.initrd.kernelModules = [ "kvm-intel" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.luks = { boot.initrd.luks = {
devices = { devices = {

View File

@ -5,9 +5,7 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# bootloader # bootloader
boot.extraModulePackages = [ ]; boot.kernelModules = [ "kvm-amd" "amdgpu" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
# filesystems - boot # filesystems - boot

View File

@ -14,11 +14,11 @@
# enable pipewire # enable pipewire
services.pipewire = { services.pipewire = {
enable = true;
pulse.enable = true;
alsa = { alsa = {
enable = true; enable = true;
support32Bit = true; support32Bit = true;
}; };
enable = true;
pulse.enable = true;
}; };
} }

View File

@ -5,9 +5,7 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# bootloader # bootloader
boot.extraModulePackages = [ ]; boot.initrd.kernelModules = [ "kvm-intel" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
# filesystems - boot # filesystems - boot