Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
davegallant committed Oct 15, 2024
1 parent a3ded17 commit 978c7aa
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 28 deletions.
68 changes: 48 additions & 20 deletions machines/hephaestus/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{ config, lib, modulesPath, pkgs, unstable, ... }:
{
config,
lib,
modulesPath,
pkgs,
unstable,
...
}:
let
gnomeExtensions = with pkgs.gnomeExtensions; [
appindicator
Expand All @@ -12,17 +19,16 @@ let
tailscale-status
tray-icons-reloaded
];
in {
in
{

imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

stylix = {
enable = true;
base16Scheme =
"${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
base16Scheme = "${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
image = pkgs.fetchurl {
url =
"https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
url = "https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
sha256 = "Ztqn9+CHslr6wZdnOTeo/YNi/ICerpcFLyMArsZ/PIY=";
};
polarity = "dark";
Expand All @@ -45,18 +51,29 @@ in {
};
};

supportedFilesystems = [ "ntfs" "zfs" ];
supportedFilesystems = [
"ntfs"
"zfs"
];

initrd = {
availableKernelModules =
[ "ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
availableKernelModules = [
"ahci"
"nvme"
"sd_mod"
"usb_storage"
"usbhid"
"xhci_pci"
];
luks.devices."root" = {
allowDiscards = true;
device = "/dev/disk/by-uuid/21cd166c-1528-49a4-b31b-0d408d48aa80";
preLVM = true;
keyFile = "./keyfile0.bin";
};
secrets = { "keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin"; };
secrets = {
"keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin";
};
};
};

Expand All @@ -65,7 +82,8 @@ in {
keyMap = "us";
};

environment.systemPackages = with pkgs;
environment.systemPackages =
with pkgs;
[
android-tools
bitwarden
Expand Down Expand Up @@ -114,7 +132,8 @@ in {
wine
wine64
wireshark-qt
] ++ gnomeExtensions;
]
++ gnomeExtensions;

fileSystems = {
"/" = {
Expand Down Expand Up @@ -143,8 +162,7 @@ in {
};
};

swapDevices =
[{ device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; }];
swapDevices = [ { device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; } ];

nixpkgs = {
hostPlatform = "x86_64-linux";
Expand All @@ -158,7 +176,9 @@ in {
iproute2.enable = true;
hostName = "hephaestus";
hostId = "0e8aad53";
interfaces.enp34s0 = { useDHCP = true; };
interfaces.enp34s0 = {
useDHCP = true;
};
firewall = {
allowPing = false;
enable = true;
Expand All @@ -167,18 +187,27 @@ in {
};
};

systemd.services = { NetworkManager-wait-online.enable = false; };
systemd.services = {
NetworkManager-wait-online.enable = false;
};

system = {
autoUpgrade.enable = true;
stateVersion = "24.05";
};

nix = { extraOptions = "experimental-features = nix-command flakes"; };
nix = {
extraOptions = "experimental-features = nix-command flakes";
};

users.users.dave = {
isNormalUser = true;
extraGroups = [ "docker" "wheel" "libvirtd" "corectrl" ];
extraGroups = [
"docker"
"wheel"
"libvirtd"
"corectrl"
];
shell = pkgs.zsh;
};

Expand All @@ -193,8 +222,7 @@ in {

hardware = {
opengl.enable = true;
cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
pulseaudio.enable = true;
# Vulkan
opengl.driSupport = true;
Expand Down
18 changes: 13 additions & 5 deletions machines/zelus/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{ pkgs, ... }:
let checkBrew = "command -v brew > /dev/null";
in {
let
checkBrew = "command -v brew > /dev/null";
in
{
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [ ];
};
};

networking = { hostName = "zelus"; };
networking = {
hostName = "zelus";
};

services.nix-daemon.enable = true;

Expand All @@ -28,7 +32,9 @@ in {
extraInit = ''
${checkBrew} || >&2 echo "brew is not installed (install it via https://brew.sh)"
'';
variables = { LANG = "en_US.UTF-8"; };
variables = {
LANG = "en_US.UTF-8";
};
};

system.defaults = {
Expand Down Expand Up @@ -69,7 +75,9 @@ in {
enable = true;
onActivation.autoUpdate = false;
onActivation.upgrade = false;
global = { brewfile = true; };
global = {
brewfile = true;
};

brews = [
"azure-cli"
Expand Down
14 changes: 11 additions & 3 deletions packages.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{ config, lib, pkgs, unstable, ... }:
let inherit (pkgs) stdenv;
in {
{
config,
lib,
pkgs,
unstable,
...
}:
let
inherit (pkgs) stdenv;
in
{
environment.systemPackages = with pkgs; [
# essentials
curl
Expand Down

0 comments on commit 978c7aa

Please sign in to comment.