feat: format

This commit is contained in:
s-prechtl 2024-09-15 11:57:16 +02:00
parent 95f31e1d7a
commit 0844945c23
15 changed files with 1111 additions and 1080 deletions

View file

@ -10,7 +10,12 @@
};
};
outputs = { self, nixpkgs, ... }@inputs: {
outputs = {
self,
nixpkgs,
...
} @ inputs: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [

View file

@ -1,12 +1,13 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, inputs, ... }:
{
imports =
[
config,
pkgs,
inputs,
...
}: {
imports = [
../../modules/nixos/main-user.nix
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
@ -97,7 +98,6 @@
};
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
@ -160,7 +160,6 @@
# enableSSHSupport = true;
# };
services.fprintd.enable = true;
# List services that you want to enable:
@ -182,5 +181,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
}

View file

@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod"];
@ -13,19 +17,19 @@
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ed1afa26-1c26-4da6-a4b4-b5cb6e0b2222";
fileSystems."/" = {
device = "/dev/disk/by-uuid/ed1afa26-1c26-4da6-a4b4-b5cb6e0b2222";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1FDC-CD90";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1FDC-CD90";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/cee4a6a9-f044-4258-9d4b-35c67cc59e2c"; }
swapDevices = [
{device = "/dev/disk/by-uuid/cee4a6a9-f044-4258-9d4b-35c67cc59e2c";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
imports = [
../../modules/home-manager/hyprland.nix
../../modules/home-manager/pass.nix
@ -36,7 +38,6 @@
# '')
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.alacritty = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.btop = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.git = {
enable = true;
delta.enable = true;

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
imports = [
./hyprlock.nix
];
@ -11,7 +13,8 @@
settings = {
# BINDS
"$mod" = "SUPER";
bind = [
bind =
[
"SUPERSHIFT, E, exit"
"$mod, Q, killactive"
"$mod, B, exec, brave"
@ -50,8 +53,9 @@
++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
builtins.concatLists (builtins.genList (i:
let ws = i + 1;
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
in [
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
@ -140,7 +144,6 @@
"whatpulse"
];
# WINDOW RULES
windowrule = [
"move 400 400, float, title:(jetbrains toolbox)"

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.hyprlock = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
services.nextcloud-client = {
enable = true;
startInBackground = true;

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.password-store = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.waybar = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.wofi = {
enable = true;
settings = {

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
programs.eza.enable = true;
programs.zsh = {
enable = true;

View file

@ -1,12 +1,14 @@
{ lib, config, pkgs, ... }:
let
cfg = config.main-user;
in
{
lib,
config,
pkgs,
...
}: let
cfg = config.main-user;
in {
options.main-user = {
enable
= lib.mkEnableOption "enable user module";
enable =
lib.mkEnableOption "enable user module";
username = lib.mkOption {
default = "mainuser";