chore: reformat using nixd and nixfmt-rfc-style
This commit is contained in:
parent
1ea540535e
commit
813cc599f0
38 changed files with 280 additions and 166 deletions
32
flake.nix
32
flake.nix
|
|
@ -10,21 +10,31 @@
|
||||||
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, home-manager, ... }:
|
outputs =
|
||||||
|
inputs@{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
pkgs = system: import nixpkgs {
|
pkgs =
|
||||||
|
system:
|
||||||
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [ inputs.nix-vscode-extensions.overlays.default ];
|
||||||
inputs.nix-vscode-extensions.overlays.default
|
config = {
|
||||||
];
|
allowUnfree = true;
|
||||||
config = { allowUnfree = true; };
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { pkgs = (pkgs system); };
|
specialArgs = {
|
||||||
|
pkgs = (pkgs system);
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/main-laptop/configuration.nix
|
./hosts/main-laptop/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
@ -39,10 +49,10 @@
|
||||||
|
|
||||||
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { pkgs = (pkgs system); };
|
specialArgs = {
|
||||||
modules = [
|
pkgs = (pkgs system);
|
||||||
./hosts/main-homelab/configuration.nix
|
};
|
||||||
];
|
modules = [ ./hosts/main-homelab/configuration.nix ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
programs.bun = {
|
programs.bun = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGitIntegration = true;
|
enableGitIntegration = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
programs.fastfetch = {
|
programs.fastfetch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#todo add fastfetch config
|
#todo add fastfetch config
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userEmail = "85629831+veneficium42@users.noreply.github.com";
|
userEmail = "85629831+veneficium42@users.noreply.github.com";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
imports = [ ./fastfetch.nix ];
|
imports = [ ./fastfetch.nix ];
|
||||||
programs.hyfetch = {
|
programs.hyfetch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
programs.password-store = {
|
programs.password-store = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.pass-wayland.withExtensions (exts: [ exts.pass-checkup exts.pass-audit ]);
|
package = pkgs.pass-wayland.withExtensions (exts: [
|
||||||
|
exts.pass-checkup
|
||||||
|
exts.pass-audit
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
services.amberol.enable = true;
|
services.amberol.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
#todo config
|
#todo config
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
home.packages = [ pkgs.vesktop ];
|
home.packages = [ pkgs.vesktop ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
#The VSCoderrrrrrrr
|
#The VSCoderrrrrrrr
|
||||||
#codepilled nixmaxxer
|
#codepilled nixmaxxer
|
||||||
#god I love tumblr
|
#god I love tumblr
|
||||||
#tumblrpilled mememaxxer
|
#tumblrpilled mememaxxer
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
@ -10,7 +12,9 @@
|
||||||
enableExtensionUpdateCheck = false;
|
enableExtensionUpdateCheck = false;
|
||||||
mutableExtensionsDir = false;
|
mutableExtensionsDir = false;
|
||||||
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions =
|
||||||
|
with pkgs.vscode-extensions;
|
||||||
|
[
|
||||||
ms-vscode.cpptools
|
ms-vscode.cpptools
|
||||||
ms-vscode.live-server
|
ms-vscode.live-server
|
||||||
mhutchie.git-graph
|
mhutchie.git-graph
|
||||||
|
|
@ -22,7 +26,8 @@
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
biomejs.biome
|
biomejs.biome
|
||||||
] ++ (with pkgs.open-vsx; [
|
]
|
||||||
|
++ (with pkgs.open-vsx; [
|
||||||
jeanp413.open-remote-ssh
|
jeanp413.open-remote-ssh
|
||||||
antfu.unocss
|
antfu.unocss
|
||||||
]);
|
]);
|
||||||
|
|
@ -30,9 +35,17 @@
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"workbench.iconTheme" = "material-icon-theme";
|
"workbench.iconTheme" = "material-icon-theme";
|
||||||
"workbench.productIconTheme" = "material-product-icons";
|
"workbench.productIconTheme" = "material-product-icons";
|
||||||
|
|
||||||
|
"terminal.integrated.fontFamily" = "FiraCode Nerd Font";
|
||||||
|
"terminal.integrated.fontSize" = 14;
|
||||||
|
"terminal.integrated.fontWeight" = 500;
|
||||||
|
"editor.fontFamily" = "FiraCode Nerd Font Mono";
|
||||||
|
"editor.fontLigatures" = true;
|
||||||
|
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
"workbench.sideBar.location" = "right";
|
"workbench.sideBar.location" = "right";
|
||||||
"workbench.startupEditor" = "welcomePageInEmptyWorkbench";
|
"workbench.startupEditor" = "welcomePageInEmptyWorkbench";
|
||||||
|
|
||||||
"nix.enableLanguageServer" = true;
|
"nix.enableLanguageServer" = true;
|
||||||
"nix.serverPath" = "nixd";
|
"nix.serverPath" = "nixd";
|
||||||
"nix.serverSettings" = {
|
"nix.serverSettings" = {
|
||||||
|
|
@ -44,11 +57,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
"C_Cpp.clang_format_fallbackStyle" = "LLVM";
|
"C_Cpp.clang_format_fallbackStyle" = "LLVM";
|
||||||
"editor.fontFamily" = "FiraCode Nerd Font Mono";
|
|
||||||
"editor.fontLigatures" = true;
|
|
||||||
"terminal.integrated.fontFamily" = "FiraCode Nerd Font";
|
|
||||||
"terminal.integrated.fontSize" = 14;
|
|
||||||
"terminal.integrated.fontWeight" = 500;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
#todo config
|
#todo config
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, ... }: {
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../nixosModules/default.nix
|
../../nixosModules/default.nix
|
||||||
|
|
@ -49,9 +49,12 @@
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
#enable flakes
|
#enable flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
#DO NOT CHANGE THIS! IMPORTANT! DO NOT CHANGE THIS!
|
#DO NOT CHANGE THIS! IMPORTANT! DO NOT CHANGE THIS!
|
||||||
system.stateVersion = "24.05"; #DO NOT CHANGE THIS!
|
system.stateVersion = "24.05"; # DO NOT CHANGE THIS!
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,42 @@
|
||||||
# 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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"vmd"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
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/58d4396b-d87c-419b-ac35-c4d282ef05b1";
|
device = "/dev/disk/by-uuid/58d4396b-d87c-419b-ac35-c4d282ef05b1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/F5D9-1046";
|
device = "/dev/disk/by-uuid/F5D9-1046";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [
|
||||||
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,18 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }:
|
||||||
imports =
|
{
|
||||||
[
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../nixosModules/default.nix
|
../../nixosModules/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
#required by virt-manager
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
users.extraGroups.vboxusers.members = [ "fedfer" ];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
users.fedfer.enable = lib.mkForce true;
|
users.fedfer.enable = lib.mkForce true;
|
||||||
|
|
||||||
|
|
@ -85,8 +93,11 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
#enable flakes
|
#enable flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
system.stateVersion = "23.11"; #DO NOT CHANGE THIS!
|
system.stateVersion = "23.11"; # DO NOT CHANGE THIS!
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,38 @@
|
||||||
# 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, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
[
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-label/BOOT";
|
device = "/dev/disk/by-label/BOOT";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
|
||||||
[{ device = "/dev/disk/by-label/swap"; }];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../homeManagerModules/zsh.nix
|
../../homeManagerModules/zsh.nix
|
||||||
|
|
@ -47,6 +48,6 @@
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home.stateVersion = "23.11"; #DO NOT CHANGE
|
home.stateVersion = "23.11"; # DO NOT CHANGE
|
||||||
programs.home-manager.enable = true; #DO NOT CHANGE
|
programs.home-manager.enable = true; # DO NOT CHANGE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }:
|
||||||
imports =
|
{
|
||||||
[
|
imports = [
|
||||||
./locale.nix
|
./locale.nix
|
||||||
|
|
||||||
./users/fedfer.nix
|
./users/fedfer.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
options.settings.drivers.gpu.amd = {
|
options.settings.drivers.gpu.amd = {
|
||||||
enable = lib.mkEnableOption "enable AMD gpu drivers";
|
enable = lib.mkEnableOption "enable AMD gpu drivers";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
settings.drivers.gpu.nvidia.forceDisable = lib.mkEnableOption "force disable all nvidia drivers";
|
settings.drivers.gpu.nvidia.forceDisable = lib.mkEnableOption "force disable all nvidia drivers";
|
||||||
|
|
@ -20,6 +21,13 @@
|
||||||
# Remove NVIDIA VGA/3D controller devices
|
# Remove NVIDIA VGA/3D controller devices
|
||||||
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
||||||
'';
|
'';
|
||||||
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_uvm" "nvidiafb" "nvidia_drm" "nvidia_modeset" ];
|
boot.blacklistedKernelModules = [
|
||||||
|
"nouveau"
|
||||||
|
"nvidia"
|
||||||
|
"nvidia_uvm"
|
||||||
|
"nvidiafb"
|
||||||
|
"nvidia_drm"
|
||||||
|
"nvidia_modeset"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
options.settings.drivers.gpu.nvidia = {
|
options.settings.drivers.gpu.nvidia = {
|
||||||
enable = lib.mkEnableOption "Enable Nvidia proprietary drivers";
|
enable = lib.mkEnableOption "Enable Nvidia proprietary drivers";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ lib, config, pkgs, ... }: {
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
|
||||||
options.settings.drivers.ipod = {
|
options.settings.drivers.ipod = {
|
||||||
enable = lib.mkEnableOption "Enable necessary software for ipod communication";
|
enable = lib.mkEnableOption "Enable necessary software for ipod communication";
|
||||||
|
|
@ -7,9 +13,7 @@
|
||||||
config = lib.mkIf config.settings.drivers.ipod.enable {
|
config = lib.mkIf config.settings.drivers.ipod.enable {
|
||||||
services.usbmuxd.enable = true;
|
services.usbmuxd.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ libimobiledevice ];
|
||||||
libimobiledevice
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ lib, config, pkgs, ... }: {
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
#use driver compatible with samsung M2020 printer
|
#use driver compatible with samsung M2020 printer
|
||||||
options.settings.drivers.printer = {
|
options.settings.drivers.printer = {
|
||||||
M2020.enable = lib.mkEnableOption "use the appropriate driver for the samsung M2020 printer";
|
M2020.enable = lib.mkEnableOption "use the appropriate driver for the samsung M2020 printer";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
options.settings.programs.docker = {
|
options.settings.programs.docker = {
|
||||||
enable = lib.mkEnableOption "enables docker";
|
enable = lib.mkEnableOption "enables docker";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.settings.programs.docker.enable {
|
config = lib.mkIf config.settings.programs.docker.enable { virtualisation.docker.enable = true; };
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.programs.gnupg = {
|
options.settings.programs.gnupg = {
|
||||||
enable = lib.mkEnableOption "enable gnuPG";
|
enable = lib.mkEnableOption "enable gnuPG";
|
||||||
ssh = lib.mkEnableOption "enable gnuPG ssh integration";
|
ssh = lib.mkEnableOption "enable gnuPG ssh integration";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.programs.powertop = {
|
options.settings.programs.powertop = {
|
||||||
enable = lib.mkEnableOption "enables powertop";
|
enable = lib.mkEnableOption "enables powertop";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.programs.tailscale = {
|
options.settings.programs.tailscale = {
|
||||||
enable = lib.mkEnableOption "enable tailscale";
|
enable = lib.mkEnableOption "enable tailscale";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.settings.programs.tailscale.enable {
|
config = lib.mkIf config.settings.programs.tailscale.enable { services.tailscale.enable = true; };
|
||||||
services.tailscale.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.fstrim = {
|
options.settings.services.fstrim = {
|
||||||
enable = lib.mkEnableOption "enables fstrim";
|
enable = lib.mkEnableOption "enables fstrim";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.settings.services.fstrim.enable {
|
config = lib.mkIf config.settings.services.fstrim.enable { services.fstrim.enable = true; };
|
||||||
services.fstrim.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
options.settings.gnome = {
|
options.settings.gnome = {
|
||||||
enable = lib.mkEnableOption "enable gnome de";
|
enable = lib.mkEnableOption "enable gnome de";
|
||||||
};
|
};
|
||||||
|
|
@ -21,6 +27,15 @@
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
# remove various bloat
|
# remove various bloat
|
||||||
environment.gnome.excludePackages = with pkgs; [ gnome-contacts gnome-maps gnome-music gnome-weather gnome-tour epiphany totem yelp ];
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
gnome-contacts
|
||||||
|
gnome-maps
|
||||||
|
gnome-music
|
||||||
|
gnome-weather
|
||||||
|
gnome-tour
|
||||||
|
epiphany
|
||||||
|
totem
|
||||||
|
yelp
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.openssh = {
|
options.settings.services.openssh = {
|
||||||
enable = lib.mkEnableOption "enable openSSH";
|
enable = lib.mkEnableOption "enable openSSH";
|
||||||
usePAM = lib.mkEnableOption "use PAM for ssh authentication";
|
usePAM = lib.mkEnableOption "use PAM for ssh authentication";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#further move these options into settings
|
#further move these options into settings
|
||||||
config = lib.mkIf config.settings.services.openssh.enable {
|
config = lib.mkIf config.settings.services.openssh.enable {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.pam = {
|
options.settings.services.pam = {
|
||||||
enable = lib.mkEnableOption "enables PAM";
|
enable = lib.mkEnableOption "enables PAM";
|
||||||
sshd = {
|
sshd = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.audio = {
|
options.settings.services.audio = {
|
||||||
enable = lib.mkEnableOption "enable sound through pipewire and its compat layers";
|
enable = lib.mkEnableOption "enable sound through pipewire and its compat layers";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.printing = {
|
options.settings.services.printing = {
|
||||||
enable = lib.mkEnableOption "enable printing";
|
enable = lib.mkEnableOption "enable printing";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.switcheroo = {
|
options.settings.services.switcheroo = {
|
||||||
enable = lib.mkEnableOption "enable switcheroo-control for nvidia optimus management";
|
enable = lib.mkEnableOption "enable switcheroo-control for nvidia optimus management";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.services.tlp = {
|
options.settings.services.tlp = {
|
||||||
enable = lib.mkEnableOption "enables tlp for power management";
|
enable = lib.mkEnableOption "enables tlp for power management";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.settings.services.tlp.enable {
|
config = lib.mkIf config.settings.services.tlp.enable { services.tlp.enable = true; };
|
||||||
services.tlp.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
#need to move stuff to home-manager
|
#need to move stuff to home-manager
|
||||||
{ pkgs, config, lib, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
options.settings.users.fedfer = {
|
options.settings.users.fedfer = {
|
||||||
enable = lib.mkEnableOption "enables user FedFer";
|
enable = lib.mkEnableOption "enables user FedFer";
|
||||||
};
|
};
|
||||||
|
|
@ -8,7 +14,10 @@
|
||||||
users.users.fedfer = {
|
users.users.fedfer = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "FedFer";
|
description = "FedFer";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, lib, ... }: {
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
options.settings.users.veneficium = {
|
options.settings.users.veneficium = {
|
||||||
enable = lib.mkEnableOption "enables user Veneficium";
|
enable = lib.mkEnableOption "enables user Veneficium";
|
||||||
};
|
};
|
||||||
|
|
@ -7,7 +8,10 @@
|
||||||
users.users.veneficium = {
|
users.users.veneficium = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Veneficium";
|
description = "Veneficium";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue