mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +00:00
Fix fmt
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
{ config, lib, modulesPath, pkgs, unstable, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
modulesPath,
|
||||||
|
pkgs,
|
||||||
|
unstable,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
gnomeExtensions = with pkgs.gnomeExtensions; [
|
gnomeExtensions = with pkgs.gnomeExtensions; [
|
||||||
appindicator
|
appindicator
|
||||||
@@ -12,17 +19,16 @@ let
|
|||||||
tailscale-status
|
tailscale-status
|
||||||
tray-icons-reloaded
|
tray-icons-reloaded
|
||||||
];
|
];
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
base16Scheme =
|
base16Scheme = "${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||||
"${unstable.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
|
||||||
image = pkgs.fetchurl {
|
image = pkgs.fetchurl {
|
||||||
url =
|
url = "https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
|
||||||
"https://github.com/davegallant/nix-config/blob/main/nixos-wallpaper.png?raw=true";
|
|
||||||
sha256 = "Ztqn9+CHslr6wZdnOTeo/YNi/ICerpcFLyMArsZ/PIY=";
|
sha256 = "Ztqn9+CHslr6wZdnOTeo/YNi/ICerpcFLyMArsZ/PIY=";
|
||||||
};
|
};
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
@@ -45,18 +51,29 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
supportedFilesystems = [ "ntfs" "zfs" ];
|
supportedFilesystems = [
|
||||||
|
"ntfs"
|
||||||
|
"zfs"
|
||||||
|
];
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules =
|
availableKernelModules = [
|
||||||
[ "ahci" "nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"sd_mod"
|
||||||
|
"usb_storage"
|
||||||
|
"usbhid"
|
||||||
|
"xhci_pci"
|
||||||
|
];
|
||||||
luks.devices."root" = {
|
luks.devices."root" = {
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
device = "/dev/disk/by-uuid/21cd166c-1528-49a4-b31b-0d408d48aa80";
|
device = "/dev/disk/by-uuid/21cd166c-1528-49a4-b31b-0d408d48aa80";
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
keyFile = "./keyfile0.bin";
|
keyFile = "./keyfile0.bin";
|
||||||
};
|
};
|
||||||
secrets = { "keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin"; };
|
secrets = {
|
||||||
|
"keyfile0.bin" = "/etc/secrets/initrd/keyfile0.bin";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -65,7 +82,8 @@ in {
|
|||||||
keyMap = "us";
|
keyMap = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs;
|
environment.systemPackages =
|
||||||
|
with pkgs;
|
||||||
[
|
[
|
||||||
android-tools
|
android-tools
|
||||||
bitwarden
|
bitwarden
|
||||||
@@ -114,7 +132,8 @@ in {
|
|||||||
wine
|
wine
|
||||||
wine64
|
wine64
|
||||||
wireshark-qt
|
wireshark-qt
|
||||||
] ++ gnomeExtensions;
|
]
|
||||||
|
++ gnomeExtensions;
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
@@ -143,8 +162,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices = [ { device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; } ];
|
||||||
[{ device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090"; }];
|
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = "x86_64-linux";
|
hostPlatform = "x86_64-linux";
|
||||||
@@ -158,7 +176,9 @@ in {
|
|||||||
iproute2.enable = true;
|
iproute2.enable = true;
|
||||||
hostName = "hephaestus";
|
hostName = "hephaestus";
|
||||||
hostId = "0e8aad53";
|
hostId = "0e8aad53";
|
||||||
interfaces.enp34s0 = { useDHCP = true; };
|
interfaces.enp34s0 = {
|
||||||
|
useDHCP = true;
|
||||||
|
};
|
||||||
firewall = {
|
firewall = {
|
||||||
allowPing = false;
|
allowPing = false;
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -167,18 +187,27 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = { NetworkManager-wait-online.enable = false; };
|
systemd.services = {
|
||||||
|
NetworkManager-wait-online.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
autoUpgrade.enable = true;
|
autoUpgrade.enable = true;
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = { extraOptions = "experimental-features = nix-command flakes"; };
|
nix = {
|
||||||
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
};
|
||||||
|
|
||||||
users.users.dave = {
|
users.users.dave = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "docker" "wheel" "libvirtd" "corectrl" ];
|
extraGroups = [
|
||||||
|
"docker"
|
||||||
|
"wheel"
|
||||||
|
"libvirtd"
|
||||||
|
"corectrl"
|
||||||
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -193,8 +222,7 @@ in {
|
|||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
opengl.enable = true;
|
opengl.enable = true;
|
||||||
cpu.amd.updateMicrocode =
|
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
pulseaudio.enable = true;
|
pulseaudio.enable = true;
|
||||||
# Vulkan
|
# Vulkan
|
||||||
opengl.driSupport = true;
|
opengl.driSupport = true;
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let checkBrew = "command -v brew > /dev/null";
|
let
|
||||||
in {
|
checkBrew = "command -v brew > /dev/null";
|
||||||
|
in
|
||||||
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
@@ -8,7 +10,9 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = { hostName = "zelus"; };
|
networking = {
|
||||||
|
hostName = "zelus";
|
||||||
|
};
|
||||||
|
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
|
|
||||||
@@ -28,7 +32,9 @@ in {
|
|||||||
extraInit = ''
|
extraInit = ''
|
||||||
${checkBrew} || >&2 echo "brew is not installed (install it via https://brew.sh)"
|
${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 = {
|
system.defaults = {
|
||||||
@@ -69,7 +75,9 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
onActivation.autoUpdate = false;
|
onActivation.autoUpdate = false;
|
||||||
onActivation.upgrade = false;
|
onActivation.upgrade = false;
|
||||||
global = { brewfile = true; };
|
global = {
|
||||||
|
brewfile = true;
|
||||||
|
};
|
||||||
|
|
||||||
brews = [
|
brews = [
|
||||||
"azure-cli"
|
"azure-cli"
|
||||||
|
14
packages.nix
14
packages.nix
@@ -1,6 +1,14 @@
|
|||||||
{ config, lib, pkgs, unstable, ... }:
|
{
|
||||||
let inherit (pkgs) stdenv;
|
config,
|
||||||
in {
|
lib,
|
||||||
|
pkgs,
|
||||||
|
unstable,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (pkgs) stdenv;
|
||||||
|
in
|
||||||
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# essentials
|
# essentials
|
||||||
curl
|
curl
|
||||||
|
Reference in New Issue
Block a user