Skip to content

Commit

Permalink
chore: code cleanup (nixpkgs-fmt style)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Jul 19, 2024
1 parent 2a08576 commit dc66bb2
Show file tree
Hide file tree
Showing 44 changed files with 1,147 additions and 1,133 deletions.
468 changes: 226 additions & 242 deletions flake.nix

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 25 additions & 20 deletions profiles/TEMPLATE/home.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ config, pkgs, ... }:

{
config,
pkgs,
...
}: {


services.gpg-agent = {
enable = true;
enableSshSupport = true;
Expand All @@ -29,7 +29,7 @@
];
};
# update path if the sops private key is stored somewhere else
sops.age.sshKeyPaths = ["${config.home.homeDirectory}/.ssh/sops"];
sops.age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/sops" ];

# waybar config - TEMPLATE - update for cores and temp
programs.waybar.settings.mainBar = {
Expand All @@ -40,7 +40,7 @@

# -----------------------------------------------------------------
# is this machine always connected to power? If yes, use this block:
#
#
# programs.waybar.settings.mainBar."custom/pseudobat" = {
# format = "";
# on-click-right = "wlogout -p layer-shell";
Expand All @@ -62,7 +62,7 @@
# "custom/left-arrow-dark"
# "clock#1"
# ];
#
#
# -----------------------------------------------------------------

# -----------------------------------------------------------------
Expand Down Expand Up @@ -109,6 +109,7 @@
natural_scroll = "enabled";
middle_emulation = "enabled";
};

};

output = {
Expand All @@ -119,21 +120,25 @@
};
};

keybindings = let
inherit (config.wayland.windowManager.sway.config) modifier;
in {
# TEMPLATE
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkschildi.sh\"";
# "${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
};
keybindings =
let
inherit (config.wayland.windowManager.sway.config) modifier;
in
{
# TEMPLATE
"${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkschildi.sh\"";
# "${modifier}+w" = "exec \"bash ~/.dotfiles/scripts/checkelement.sh\"";
};

startup = [
{command = "nextcloud --background";}
{command = "discord --start-minimized";}
{command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";}
{command = "ANKI_WAYLAND=1 anki";}
{command = "OBSIDIAN_USE_WAYLAND=1 obsidian";}
{command = "nm-applet";}

{ command = "nextcloud --background"; }
{ command = "discord --start-minimized"; }
{ command = "element-desktop --hidden -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds"; }
{ command = "ANKI_WAYLAND=1 anki"; }
{ command = "OBSIDIAN_USE_WAYLAND=1 obsidian"; }
{ command = "nm-applet"; }

];
};
};
Expand Down
22 changes: 15 additions & 7 deletions profiles/TEMPLATE/nixos.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
];
{ pkgs, ... }:

{


imports =
[
./hardware-configuration.nix
];


services = {
getty.autologinUser = "TEMPLATE";
Expand Down Expand Up @@ -67,7 +73,7 @@
};

monospace = {
package = pkgs.nerdfonts.override {fonts = ["FiraCode"];};
package = pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; };
name = "FiraCode Nerd Font Mono";
};

Expand All @@ -78,6 +84,7 @@
};
};


# Configure keymap in X11 (only used for login)
services.xserver = {
layout = "us";
Expand All @@ -87,12 +94,13 @@
users.users.TEMPLATE = {
isNormalUser = true;
description = "TEMPLATE";
extraGroups = ["networkmanager" "wheel" "lp" "audio" "video"];
packages = with pkgs; [];
extraGroups = [ "networkmanager" "wheel" "lp" "audio" "video" ];
packages = with pkgs; [ ];
};

environment.systemPackages = with pkgs; [
];

system.stateVersion = "23.05"; # TEMPLATE - but probably no need to change

}
Loading

0 comments on commit dc66bb2

Please sign in to comment.