Baack to NixOS

This commit is contained in:
BalrajSinghGidda
2026-03-19 15:39:29 +05:30
parent b51ee710de
commit d5d03a360f
5 changed files with 90 additions and 97 deletions

View File

@@ -9,7 +9,7 @@
"nvim-cmp": { "branch": "main", "commit": "85bbfad83f804f11688d1ab9486b459e699292d6" },
"nvim-highlight-colors": { "branch": "main", "commit": "e0c4a58ec8c3ca7c92d3ee4eb3bc1dd0f7be317e" },
"nvim-treesitter": { "branch": "main", "commit": "b033ab331ca0bccbd93c3c2b4f886fdfc09abec0" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" },
"nvim-treesitter-textobjects": { "branch": "main", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" },
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
"orgmode": { "branch": "master", "commit": "3629625199b9a45bdb41fa734bc2c6ef86d251bd" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },

View File

@@ -159,7 +159,7 @@
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
system.stateVersion = "25.05";
system.stateVersion = "25.11";
}

View File

@@ -14,25 +14,19 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e6866995-d9a1-49a3-b718-2db721de472f";
{ device = "/dev/disk/by-uuid/78d58fd0-5bd9-4162-a136-5064480b5f98";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D8F6-4335";
{ device = "/dev/disk/by-uuid/7757-B3FF";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
swapDevices =
[ { device = "/dev/disk/by-uuid/717a0760-735a-46a1-8b0c-cb7c16c995c7"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

167
home.nix
View File

@@ -5,89 +5,88 @@ dotfiles = "${config.home.homeDirectory}/nixos-dotfiles/config";
bin = "${config.home.homeDirectory}/nixos-dotfiles/bin";
create_symlink = path: config.lib.file.mkOutOfStoreSymlink path;
configs = {
nvim = "nvim";
qtile = "qtile";
rofi = "rofi";
picom = "picom";
kitty = "kitty";
nvim = "nvim";
qtile = "qtile";
rofi = "rofi";
picom = "picom";
kitty = "kitty";
};
in
{
home.username = "balraj";
home.homeDirectory = "/home/balraj";
home.stateVersion = "25.05";
home.username = "balraj";
home.homeDirectory = "/home/balraj";
home.stateVersion = "25.05";
programs.bash = {
enable = true;
programs.bash = {
enable = true;
# bashmount.enable = true;
enableCompletion = true;
shellAliases = {
nc = "nvim ~/nixos-dotfiles/.";
btw = "echo I use NixOS, btw";
nrs = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles/#nixos-btw";
edit-config = "nvim ~/nixos-dotfiles/configuration.nix";
edit-home-config = "nvim ~/nixos-dotfiles/home.nix";
make-py-devshell = "bash ${bin}/make-py-devshell";
make-cpp-devshell = "bash ${bin}/make-cpp-devshell";
ls = "eza --long -ahF --no-user --no-permissions --git --icons=always --color=always --grid";
cd = "z";
bm = "bashmount";
};
historyIgnore = [
"ls"
"exit"
];
bashrcExtra = ''
export PS1="\[\e[38;5;75m\]\u@\h \[\e[38;5;113m\]\w \[\e[38;5;189m\]\$ \[\e[0m\]"
export MANPAGER="nvim +Man!"
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow'
eval "$(direnv hook bash)"
eval "$(zoxide init bash)"
nitch
'';
};
enableCompletion = true;
shellAliases = {
nc = "nvim ~/nixos-dotfiles/.";
btw = "echo I use NixOS, btw";
nrs = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles/#nixos-btw";
edit-config = "nvim ~/nixos-dotfiles/configuration.nix";
edit-home-config = "nvim ~/nixos-dotfiles/home.nix";
make-py-devshell = "bash ${bin}/make-py-devshell";
make-cpp-devshell = "bash ${bin}/make-cpp-devshell";
ls = "eza --long -ahF --no-user --no-permissions --git --icons=always --color=always --grid";
cd = "z";
bm = "bashmount";
};
historyIgnore = [
"ls"
"exit"
];
bashrcExtra = ''
export PS1="\[\e[38;5;75m\]\u@\h \[\e[38;5;113m\]\w \[\e[38;5;189m\]\$ \[\e[0m\]"
export MANPAGER="nvim +Man!"
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow'
eval "$(direnv hook bash)"
eval "$(zoxide init bash)"
nitch
'';
};
programs.git = {
enable = true;
settings.user.name = "BalrajSinghGidda";
settings.user.email = "anonystargamerz@gmail.com";
};
programs.git = {
enable = true;
settings.user.name = "BalrajSinghGidda";
settings.user.email = "anonystargamerz@gmail.com";
};
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [
"https://github.com"
"https://gist.github.com"
];
};
settings = {
git_protocol = "https";
prompt = "enable";
editor = "nvim";
};
};
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [
"https://github.com"
"https://gist.github.com"
];
};
settings = {
git_protocol = "https";
prompt = "enable";
editor = "nvim";
};
};
programs.gemini-cli = {
enable = true;
settings = {
"theme" = "Default";
"vimMode" = true;
"preferredEditor" = "nvim";
"autoAccept" = true;
};
defaultModel = "gemini-2.5-pro";
};
programs.gemini-cli = {
enable = true;
settings = {
"theme" = "Default";
"preferredEditor" = "nvim";
"autoAccept" = true;
};
defaultModel = "gemini-2.5-pro";
};
xdg.configFile = builtins.mapAttrs
(name: subpath: {
source = create_symlink "${dotfiles}/${subpath}";
recursive = true;
})
configs;
xdg.configFile = builtins.mapAttrs
(name: subpath: {
source = create_symlink "${dotfiles}/${subpath}";
recursive = true;
})
configs;
# xdg.configFile."qtile" = {
# source = create_symlink "${dotfiles}/qtile";
@@ -104,16 +103,16 @@ in
#
# VV
home.packages = with pkgs; [
ripgrep
nil
nixpkgs-fmt
nodejs
gcc
yazi
flatpak
eza
zoxide
python313Packages.euporie
];
home.packages = with pkgs; [
ripgrep
nil
nixpkgs-fmt
nodejs
gcc
yazi
flatpak
eza
zoxide
python313Packages.euporie
];
}