1
0
Fork 0

Statix formatting fixes

This commit is contained in:
Andre Newman 2024-03-21 16:17:06 -04:00
parent 080110e845
commit 0fcbb04c22
5 changed files with 194 additions and 176 deletions

View file

@ -21,7 +21,7 @@ with lib;
"dev.k8slens.OpenLens"
];
})
(mkIf (cfg.kubernetes.enable) {
(mkIf cfg.kubernetes.enable {
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm

View file

@ -106,17 +106,19 @@ with lib;
};
};
# Scrub BTRFS partitions if the root partition is btrfs
services.btrfs.autoScrub = lib.mkIf (config.fileSystems."/".fsType == "btrfs") {
enable = true;
interval = "weekly";
fileSystems = [ "/" ];
};
services = {
# Scrub BTRFS partitions if the root partition is btrfs
btrfs.autoScrub = lib.mkIf (config.fileSystems."/".fsType == "btrfs") {
enable = true;
interval = "weekly";
fileSystems = [ "/" ];
};
# Enable fwupd (firmware updater)
services.fwupd.enable = true;
# Enable fwupd (firmware updater)
fwupd.enable = true;
# Allow systemd user services to keep running after the user has logged out
services.logind.killUserProcesses = false;
# Allow systemd user services to keep running after the user has logged out
logind.killUserProcesses = false;
};
};
}

View file

@ -12,89 +12,97 @@ with lib;
};
config = mkIf cfg.enable {
host.ui.audio.enable = true;
host.ui.flatpak.enable = true;
# Configure the xserver
services.xserver = {
# Enable the X11 windowing system.
enable = true;
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
# Enable Gnome
desktopManager.gnome.enable = true;
displayManager = {
gdm.enable = true;
};
host.ui = {
audio.enable = true;
flatpak.enable = true;
};
# Remove default packages that came with the install
services.xserver.excludePackages = with pkgs; [
xterm
];
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
gnomeExtensions.extension-list
gedit # text editor
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gnome-calendar
epiphany # web browser
geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
services = {
# Configure the xserver
xserver = {
# Enable the X11 windowing system.
enable = true;
# Install additional Gnome packages
environment.systemPackages = with pkgs; [
# Gnome tweak tools
gnome.gnome-tweaks
# Gnome extensions
gnomeExtensions.appindicator
gnomeExtensions.dash-to-panel
gnomeExtensions.gsconnect
gnomeExtensions.forge
# Themeing
gnome.gnome-themes-extra
papirus-icon-theme
];
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
# Install Flatpaks
services.flatpak.packages = [
"com.mattjakeman.ExtensionManager"
"dev.geopjr.Tuba"
"org.bluesabre.MenuLibre"
"org.gnome.baobab"
"org.gnome.Calculator"
"org.gnome.Characters"
"org.gnome.Calendar"
"org.gnome.Evince"
"org.gnome.Evolution"
"org.gnome.FileRoller"
"org.gnome.Firmware"
"org.gnome.gitg"
"org.gnome.Loupe" # Gnome's fancy new image viewer
"org.gnome.Music"
"org.gnome.seahorse.Application"
"org.gnome.TextEditor"
"org.gnome.World.Secrets"
"org.gtk.Gtk3theme.Adwaita-dark"
];
# Enable Gnome
desktopManager.gnome.enable = true;
displayManager = {
gdm.enable = true;
};
# Disable CUPS - not needed
services.printing.enable = false;
# Remove default packages that came with the install
excludePackages = with pkgs; [
xterm
];
};
# Install Flatpaks
flatpak.packages = [
"com.mattjakeman.ExtensionManager"
"dev.geopjr.Tuba"
"org.bluesabre.MenuLibre"
"org.gnome.baobab"
"org.gnome.Calculator"
"org.gnome.Characters"
"org.gnome.Calendar"
"org.gnome.Evince"
"org.gnome.Evolution"
"org.gnome.FileRoller"
"org.gnome.Firmware"
"org.gnome.gitg"
"org.gnome.Loupe" # Gnome's fancy new image viewer
"org.gnome.Music"
"org.gnome.seahorse.Application"
"org.gnome.TextEditor"
"org.gnome.World.Secrets"
"org.gtk.Gtk3theme.Adwaita-dark"
];
# Disable CUPS - not needed
printing.enable = false;
};
environment = {
# Remove default Gnome packages that came with the install, then install the ones I actually use
gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
gnomeExtensions.extension-list
gedit # text editor
]) ++ (with pkgs.gnome; [
cheese # webcam tool
gnome-music
gnome-calendar
epiphany # web browser
geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
# Install additional Gnome packages
systemPackages = with pkgs; [
# Gnome tweak tools
gnome.gnome-tweaks
# Gnome extensions
gnomeExtensions.appindicator
gnomeExtensions.dash-to-panel
gnomeExtensions.gsconnect
gnomeExtensions.forge
# Themeing
gnome.gnome-themes-extra
papirus-icon-theme
];
};
# Manage fonts
fonts = {

View file

@ -47,58 +47,62 @@ with lib;
../common/gnome.nix
];
# The state version is required and should stay at the version you originally installed.
home.stateVersion = "24.05";
home = {
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
# Let home Manager install and manage itself.
programs.home-manager.enable = true;
# Basic setup
username = "aires";
homeDirectory = "/home/aires";
# Basic setup
home.username = "aires";
home.homeDirectory = "/home/aires";
# Install extra packages, specifically gnome extensions
packages = lib.mkIf config.host.ui.gnome.enable [
pkgs.gnomeExtensions.wallpaper-slideshow
];
};
# Install extra packages, specifically gnome extensions
home.packages = lib.mkIf config.host.ui.gnome.enable [
pkgs.gnomeExtensions.wallpaper-slideshow
];
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
# Set up git
programs.git = {
enable = true;
# Username and email set in nix-secrets
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Set up git
git = {
enable = true;
# Username and email set in nix-secrets
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Set up Zsh
zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "gentoo";
};
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
prezto = {
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
};
shellAliases = {
dry-build = "cd ~/Development/nix-configuration && nix flake update && nixos-rebuild dry-build --flake .";
update = "cd ~/Development/nix-configuration && nix flake update && sudo nixos-rebuild switch --flake .";
upgrade = "update";
protontricks = "flatpak run com.github.Matoking.protontricks";
please = "sudo";
};
loginExtra = "fastfetch";
};
};
# SSH set up in nix-secrets
# Set up Zsh
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
theme = "gentoo";
};
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
prezto = {
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
};
shellAliases = {
dry-build = "cd ~/Development/nix-configuration && nix flake update && nixos-rebuild dry-build --flake .";
update = "cd ~/Development/nix-configuration && nix flake update && sudo nixos-rebuild switch --flake .";
upgrade = "update";
protontricks = "flatpak run com.github.Matoking.protontricks";
please = "sudo";
};
loginExtra = "fastfetch";
};
# Gnome settings specific to aires on Shura
dconf.settings = lib.mkIf (config.networking.hostName == "Shura") {
"org/gnome/desktop/interface" = {

View file

@ -46,52 +46,56 @@ with lib;
../common/gnome.nix
];
# The state version is required and should stay at the version you originally installed.
home.stateVersion = "24.05";
home = {
# Basic setup
username = "gremlin";
homeDirectory = "/home/gremlin";
# Let home Manager install and manage itself.
programs.home-manager.enable = true;
# The state version is required and should stay at the version you originally installed.
stateVersion = "24.05";
};
# Basic setup
home.username = "gremlin";
home.homeDirectory = "/home/gremlin";
programs = {
# Let home Manager install and manage itself.
home-manager.enable = true;
# Set up git
programs.git = {
# Name and email set in nix-secrets
enable = true;
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Set up git
git = {
# Name and email set in nix-secrets
enable = true;
extraConfig = {
push.autoSetupRemote = "true";
};
};
# Set up Zsh
zsh = {
enable = true;
# Install and source the p10k theme
plugins = [
{ name = "powerlevel10k"; src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; }
{ name = "powerlevel10k-config"; src = ./p10k-config; file = "p10k.zsh"; }
];
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
prezto = {
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
};
shellAliases = {
please = "sudo";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
};
};
};
# SSH entries set in nix-secrets
# Set up Zsh
programs.zsh = {
enable = true;
# Install and source the p10k theme
plugins = [
{ name = "powerlevel10k"; src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; }
{ name = "powerlevel10k-config"; src = ./p10k-config; file = "p10k.zsh"; }
];
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
prezto = {
git.submoduleIgnore = "untracked"; # Ignore submodules when they are untracked.
};
shellAliases = {
please = "sudo";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
];
};
};
};
})