refactor: clean up home
This commit is contained in:
parent
3d04d338d1
commit
68047c894e
5 changed files with 67 additions and 63 deletions
|
@ -3,9 +3,9 @@
|
||||||
./ags.nix
|
./ags.nix
|
||||||
./clipse.nix
|
./clipse.nix
|
||||||
./comma.nix
|
./comma.nix
|
||||||
./zsh.nix
|
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
|
./editorconfig.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./fuzzel.nix
|
./fuzzel.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
|
@ -23,5 +23,6 @@
|
||||||
./yazi.nix
|
./yazi.nix
|
||||||
./zellij.nix
|
./zellij.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./zsh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
23
configs/programs/editorconfig.nix
Normal file
23
configs/programs/editorconfig.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
home-manager.users.rafiq = {
|
||||||
|
editorconfig = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"*" = {
|
||||||
|
end_of_line = "lf";
|
||||||
|
insert_final_newline = true;
|
||||||
|
trim_trailing_whitespace = true;
|
||||||
|
charset = "utf-8";
|
||||||
|
indent_style = "space";
|
||||||
|
indent_size = 2;
|
||||||
|
};
|
||||||
|
"package.json" = {
|
||||||
|
indent_style = "unset";
|
||||||
|
};
|
||||||
|
"*.lock" = {
|
||||||
|
indent_size = "unset";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,9 @@
|
||||||
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
];
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets/secrets.yaml;
|
defaultSopsFile = ./secrets/secrets.yaml;
|
||||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
|
|
|
@ -6,17 +6,23 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
./scripts
|
||||||
|
./programs
|
||||||
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.mutableUsers = false; # Always reset users on system activation
|
|
||||||
|
|
||||||
time.timeZone = "Asia/Singapore";
|
time.timeZone = "Asia/Singapore";
|
||||||
i18n.defaultLocale = "en_SG.UTF-8";
|
i18n.defaultLocale = "en_SG.UTF-8";
|
||||||
|
|
||||||
|
users.mutableUsers = false; # Always reset users on system activation
|
||||||
|
|
||||||
users.users.rafiq = {
|
users.users.rafiq = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "rafiq";
|
description = "rafiq";
|
||||||
|
@ -29,66 +35,37 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
imports = [
|
|
||||||
./scripts
|
|
||||||
./programs
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.rafiq.imports = [
|
home-manager.users.rafiq = {
|
||||||
{
|
home = {
|
||||||
# This enables using home-manager from the command line.
|
username = "rafiq";
|
||||||
programs.home-manager.enable = true;
|
homeDirectory = "/home/rafiq";
|
||||||
|
|
||||||
editorconfig = {
|
# This defines the version home-manager
|
||||||
enable = true;
|
# was originally bulit against on this system.
|
||||||
settings = {
|
# Do not change it.
|
||||||
"*" = {
|
stateVersion = "25.05";
|
||||||
end_of_line = "lf";
|
|
||||||
insert_final_newline = true;
|
shell.enableShellIntegration = true;
|
||||||
trim_trailing_whitespace = true;
|
shellAliases = {
|
||||||
charset = "utf-8";
|
gs = "git status";
|
||||||
indent_style = "space";
|
ai = "aichat -r %shell% -e";
|
||||||
indent_size = 2;
|
cd = "z";
|
||||||
};
|
list-all-packages = "nix-store --query --requisites /run/current-system | cut -d- -f2- | sort | uniq";
|
||||||
"package.json" = {
|
|
||||||
indent_style = "unset";
|
|
||||||
};
|
|
||||||
"*.lock" = {
|
|
||||||
indent_size = "unset";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
packages = with pkgs; [
|
||||||
username = "rafiq";
|
aichat # duh
|
||||||
homeDirectory = "/home/rafiq";
|
bat
|
||||||
|
btop # add settings as home-manager module
|
||||||
# This defines the version home-manager
|
devenv
|
||||||
# was originally bulit against on this system.
|
fastfetch # system info
|
||||||
# Do not change it.
|
hyprpicker
|
||||||
stateVersion = "25.05";
|
inputs.hyprcloser.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||||
|
ripgrep
|
||||||
shell.enableShellIntegration = true;
|
ttyper
|
||||||
shellAliases = {
|
wl-clipboard # provides cli copy and paste commands
|
||||||
gs = "git status";
|
];
|
||||||
ai = "aichat -r %shell% -e";
|
};
|
||||||
cd = "z";
|
};
|
||||||
list-all-packages = "nix-store --query --requisites /run/current-system | cut -d- -f2- | sort | uniq";
|
|
||||||
};
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
aichat # duh
|
|
||||||
bat
|
|
||||||
btop # add settings as home-manager module
|
|
||||||
devenv
|
|
||||||
fastfetch # system info
|
|
||||||
hyprpicker
|
|
||||||
inputs.hyprcloser.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
||||||
ripgrep
|
|
||||||
ttyper
|
|
||||||
wl-clipboard # provides cli copy and paste commands
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
specialArgs = args;
|
specialArgs = args;
|
||||||
modules = [
|
modules = [
|
||||||
./configs
|
./configs
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue