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,8 +1,11 @@
{ 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
]; ];
@ -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:
@ -63,6 +65,4 @@
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,11 +1,15 @@
# 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"];
@ -13,18 +17,18 @@
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;
@ -47,7 +49,5 @@
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

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 = {