feat: format

This commit is contained in:
Yadunand Prem 2024-11-20 10:57:39 -05:00
parent 74c81d7fea
commit 7a891d17cb
No known key found for this signature in database
10 changed files with 120 additions and 111 deletions

View File

@ -1,23 +1,26 @@
{ config, pkgs, inputs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
inputs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
nix.settings.experimental-features = ["nix-command" "flakes" ]; nix.settings.experimental-features = ["nix-command" "flakes"];
networking.hostName = "falcon-nixos"; # Define your hostname. networking.hostName = "falcon-nixos"; # Define your hostname.
users.users.yadunut = { users.users.yadunut = {
shell = pkgs.zsh; shell = pkgs.zsh;
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = ["wheel"]; # Enable sudo for the user.
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG" ]; openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG"];
}; };
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
@ -30,7 +33,6 @@
age.secrets.tailscale.file = ./secrets/tailscale.age; age.secrets.tailscale.file = ./secrets/tailscale.age;
programs.zsh.enable = true; programs.zsh.enable = true;
# List services that you want to enable: # List services that you want to enable:
@ -41,7 +43,7 @@
services.tailscale = { services.tailscale = {
enable = true; enable = true;
authKeyFile = config.age.secrets.tailscale.path; authKeyFile = config.age.secrets.tailscale.path;
extraUpFlags = [ "--login-server" "http://ts.yadunut.com:444" ]; extraUpFlags = ["--login-server" "http://ts.yadunut.com:444"];
}; };
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
@ -60,9 +62,7 @@
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
# Need this for nvidia-smi # Need this for nvidia-smi
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = ["nvidia"];
system.stateVersion = "23.11"; # Did you read the comment? system.stateVersion = "23.11"; # Did you read the comment?
} }

View File

@ -1,30 +1,34 @@
# 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, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/profiles/qemu-guest.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = ["uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/12b222f4-bd4b-4f52-9402-c99057a39382"; device = "/dev/disk/by-uuid/12b222f4-bd4b-4f52-9402-c99057a39382";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/0625-632C"; device = "/dev/disk/by-uuid/0625-632C";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/d56b2565-66f8-4f22-a078-8b0e4c9bb019"; } {device = "/dev/disk/by-uuid/d56b2565-66f8-4f22-a078-8b0e4c9bb019";}
]; ];
# 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

View File

@ -1,5 +1,8 @@
{ config, pkgs, ... } :
{ {
config,
pkgs,
...
}: {
home.username = "yadunut"; home.username = "yadunut";
home.homeDirectory = "/home/yadunut"; home.homeDirectory = "/home/yadunut";
@ -31,7 +34,6 @@
}; };
}; };
programs.tmux = { programs.tmux = {
enable = true; enable = true;
newSession = true; newSession = true;
@ -43,11 +45,9 @@
pain-control pain-control
]; ];
}; };
programs.zsh.prezto.pmodules = [ "tmux" ]; programs.zsh.prezto.pmodules = ["tmux"];
programs.zsh.prezto.tmux.autoStartRemote = true; programs.zsh.prezto.tmux.autoStartRemote = true;
programs.fzf.tmux.enableShellIntegration = true; programs.fzf.tmux.enableShellIntegration = true;
home.stateVersion = "23.11"; home.stateVersion = "23.11";
} }

View File

@ -1,8 +1,6 @@
let let
system1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHMBVrt8ORitBVmkDSf78zli0M2+ggQtdnPEywqaaKA root@nixos"; system1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHMBVrt8ORitBVmkDSf78zli0M2+ggQtdnPEywqaaKA root@nixos";
systems = [ system1 ]; systems = [system1];
in in {
{
"tailscale.age".publicKeys = systems; "tailscale.age".publicKeys = systems;
} }

View File

@ -215,11 +215,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731887066, "lastModified": 1732025103,
"narHash": "sha256-uw7K/RsYioJicV79Nl39yjtfhdfTDU2aRxnBgvFhkZ8=", "narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f3a2ff69586f3a54b461526e5702b1a2f81e740a", "rev": "a46e702093a5c46e192243edbd977d5749e7f294",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -236,11 +236,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731604581, "lastModified": 1731887066,
"narHash": "sha256-Qq2YZZaDTB3FZLWU/Hgh1uuWlUBl3cMLGB99bm7rFUM=", "narHash": "sha256-uw7K/RsYioJicV79Nl39yjtfhdfTDU2aRxnBgvFhkZ8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1d0862ee2d7c6f6cd720d6f32213fa425004be10", "rev": "f3a2ff69586f3a54b461526e5702b1a2f81e740a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -285,11 +285,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731642829, "lastModified": 1731885500,
"narHash": "sha256-vG+O2RZRzYZ8BUMNNJ+BLSj6PUoGW7taDQbp6QNJ3Xo=", "narHash": "sha256-ZrztYfSOS33J+ewq5alBOSdnIyZ0/sr1iy7FyBe9zIg=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "f86f158efd4bab8dce3e207e4621f1df3a760b7a", "rev": "c60b5c924c6188a0b3ca2e139ead3d0f92ae5db5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -345,11 +345,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1731883908, "lastModified": 1732035679,
"narHash": "sha256-Yt/eVhoj+SwpsQVK0YxM8jou55ni0+dqANuQ2IvIA28=", "narHash": "sha256-J03v1XnxvsrrvHmzKVBZiwik8678IXfkH1/ZR954ujk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "5bc3fa6996ee37b754f2e815a165be6e4d0cfcb9", "rev": "929bb0cd1cffb9917ab14be9cdb3f27efd6f505f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -368,11 +368,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1731582522, "lastModified": 1731936508,
"narHash": "sha256-1w6aM4bG5cl2E4jHLPnMKkrUO4tY1jUX1NI6/RwJN7Y=", "narHash": "sha256-z0BSSf78LkxIrrFXZYmCoRRAxAmxMUKpK7CyxQRvkZI=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "search", "repo": "search",
"rev": "13300b2297c51368e0892c3ebe220f688014fe15", "rev": "fe07070f811b717a4626d01fab714a87d422a9e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -443,11 +443,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1730321837, "lastModified": 1731944360,
"narHash": "sha256-vK+a09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/+maI=", "narHash": "sha256-sJxPh+V0vUkBhlA58ok/y0o96AtfqiEF0O8qsdolI6o=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "746901bb8dba96d154b66492a29f5db0693dbfcc", "rev": "579b9a2fd0020cd9cd81a4ef4eab2dca4d20c94c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
programs.git-credential-oauth.enable = true; programs.git-credential-oauth.enable = true;
programs.git = { programs.git = {
enable = true; enable = true;
@ -29,7 +28,6 @@
oauthTokenURL = "/login/oauth/access_token"; oauthTokenURL = "/login/oauth/access_token";
}; };
}; };
}; };
}; };
home.packages = [ home.packages = [

View File

@ -1,5 +1,9 @@
{ config, pkgs, inputs, ... }:
{ {
config,
pkgs,
inputs,
...
}: {
home.packages = [ home.packages = [
pkgs.comic-mono pkgs.comic-mono
]; ];

View File

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{ {
config,
pkgs,
...
}: {
home.packages = with pkgs; [ home.packages = with pkgs; [
zsh-completions zsh-completions
bat bat

View File

@ -1,6 +1,10 @@
{ config, pkgs, inputs, lib, ... }:
{ {
config,
pkgs,
inputs,
lib,
...
}: {
imports = [ imports = [
../modules/zsh.nix ../modules/zsh.nix
../modules/neovim.nix ../modules/neovim.nix
@ -32,10 +36,8 @@
pkgs.zellij pkgs.zellij
pkgs.httpie pkgs.httpie
pkgs.emacs pkgs.emacs
pkgs.wezterm pkgs.wezterm
pkgs.arc-browser
pkgs.raycast pkgs.raycast
pkgs.tailscale pkgs.tailscale
pkgs.vscode pkgs.vscode
@ -89,10 +91,10 @@
# /etc/profiles/per-user/yadunut/etc/profile.d/hm-session-vars.sh # /etc/profiles/per-user/yadunut/etc/profile.d/hm-session-vars.sh
# #
home.sessionVariables = { home.sessionVariables = {
JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home"; JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
ANDROID_HOME="$HOME/Library/Android/sdk"; ANDROID_HOME = "$HOME/Library/Android/sdk";
EDITOR="nvim"; EDITOR = "nvim";
VISUAL="nvim"; VISUAL = "nvim";
}; };
home.sessionPath = [ home.sessionPath = [
"$ANDROID_HOME/emulator" "$ANDROID_HOME/emulator"
@ -130,30 +132,30 @@
orange = "#cb4b16"; orange = "#cb4b16";
}; };
gruvbox-light = { gruvbox-light = {
bg="#d5c4a1"; bg = "#d5c4a1";
fg="#504945"; fg = "#504945";
orange="#980005"; orange = "#980005";
green="#79740e"; green = "#79740e";
yellow="#d79921"; yellow = "#d79921";
blue="#458588"; blue = "#458588";
magenta="#b16286"; magenta = "#b16286";
cyan="#689d6a"; cyan = "#689d6a";
black="#ebdbb2"; black = "#ebdbb2";
white="#3c3836"; white = "#3c3836";
red="#d65d0e"; red = "#d65d0e";
}; };
gruvbox-dark = { gruvbox-dark = {
fg="#ebdbb2"; fg = "#ebdbb2";
bg="#504945"; bg = "#504945";
black="#3c3836"; black = "#3c3836";
red="#cc241d"; red = "#cc241d";
green="#98971a"; green = "#98971a";
yellow="#d79921"; yellow = "#d79921";
blue="#458588"; blue = "#458588";
magenta="#b16286"; magenta = "#b16286";
cyan="#689d6a"; cyan = "#689d6a";
white="#fbf1c7"; white = "#fbf1c7";
orange="#d65d0e"; orange = "#d65d0e";
}; };
}; };
}; };

View File

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{ {
config,
pkgs,
...
}: {
imports = [ imports = [
(import ../modules/zsh.nix) (import ../modules/zsh.nix)
(import ../modules/git.nix) (import ../modules/git.nix)
@ -61,10 +63,8 @@
# (pkgs.writeShellScriptBin "my-hello" '' # (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!" # echo "Hello, ${config.home.username}!"
# '') # '')
]; ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
@ -79,8 +79,8 @@
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim"; VISUAL = "nvim";
JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home"; JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
ANDROID_HOME="$HOME/Library/Android/sdk"; ANDROID_HOME = "$HOME/Library/Android/sdk";
}; };
home.sessionPath = [ home.sessionPath = [