switched formatter

This commit is contained in:
Christoph Hollizeck 2024-03-22 14:43:20 +00:00
parent e874f1de20
commit 102ee5aa76
5 changed files with 39 additions and 40 deletions

View file

@ -1,5 +1,5 @@
{ {
description = "My NixOS / nix-darwin / nixos-generators systems"; description = "NixOs Config";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
@ -26,13 +26,13 @@
inherit inputs; inherit inputs;
src = ./.; src = ./.;
channels-config = {allowUnfree = true;}; channels-config = { allowUnfree = true; };
outputs-builder = channels: {formatter = channels.nixpkgs.alejandra;}; outputs-builder = channels: { formatter = channels.nixpkgs.nixpkgs-fmt; };
overlays = with inputs; [ overlays = with inputs; [
# Use the overlay provided by this flake. # Use the overlay provided by this flake.
snowfall-flake.overlays."package/flake" snowfall-flake.overlays.default
]; ];
}; };
} }

View file

@ -1,20 +1,20 @@
{ { lib
lib, , pkgs
pkgs, , config
config, , ...
...
}: }:
# User information gathered by Snowfall Lib is available. # User information gathered by Snowfall Lib is available.
let let
name = config.snowfallorg.user.name; name = config.snowfallorg.user.name;
home = config.snowfallorg.user.home.directory; home = config.snowfallorg.user.home.directory;
in { in
{
home = { home = {
packages = with pkgs; [neovim firefox]; packages = with pkgs; [ neovim firefox ];
sessionVariables = {EDITOR = "nvim";}; sessionVariables = { EDITOR = "nvim"; };
shellAliases = {vimdiff = "nvim -d";}; shellAliases = { vimdiff = "nvim -d"; };
stateVersion = "23.11"; stateVersion = "23.11";
}; };

View file

@ -1,15 +1,16 @@
{ { lib
lib, , config
config, , ...
... }:
}: let let
cfg = config.snowfallorg.example; cfg = config.snowfallorg.example;
in { in
{
options.snowfallorg.example = { options.snowfallorg.example = {
enable = lib.mkEnableOption "Snowfall Example"; enable = lib.mkEnableOption "Snowfall Example";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.variables = {SNOWFALLORG_EXAMPLE = "enabled";}; environment.variables = { SNOWFALLORG_EXAMPLE = "enabled"; };
}; };
} }

View file

@ -1,18 +1,17 @@
{ { pkgs
pkgs, , config
config, , ...
...
}: { }: {
imports = [./hardware.nix]; imports = [ ./hardware.nix ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = ["hyperv-fb"]; boot.blacklistedKernelModules = [ "hyperv-fb" ];
virtualisation.hypervGuest.videoMode = "1920x1080"; virtualisation.hypervGuest.videoMode = "1920x1080";
users.users.cholli = { users.users.cholli = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel"]; extraGroups = [ "wheel" ];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -45,7 +44,7 @@
}; };
# Configure Home-Manager options from NixOS. # Configure Home-Manager options from NixOS.
snowfallorg.user.cholli.home.config = {}; snowfallorg.user.cholli.home.config = { };
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -1,19 +1,18 @@
# 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
config, , lib
lib, , pkgs
pkgs, , modulesPath
modulesPath, , ...
...
}: { }: {
imports = []; imports = [ ];
boot.initrd.availableKernelModules = ["sd_mod" "sr_mod"]; boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = []; boot.initrd.kernelModules = [ ];
boot.kernelModules = []; boot.kernelModules = [ ];
boot.extraModulePackages = []; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/c58c66b3-4e0f-4393-8d7b-871d934856e3"; device = "/dev/disk/by-uuid/c58c66b3-4e0f-4393-8d7b-871d934856e3";
@ -25,7 +24,7 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = []; swapDevices = [ ];
# 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