mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 09:47:57 +02:00
Update main.nix
This commit is contained in:
parent
dace88bc76
commit
b6ec715154
70
src/main.nix
70
src/main.nix
@ -16,6 +16,7 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
../containers/rar.nix
|
../containers/rar.nix
|
||||||
../containers/wine.nix
|
../containers/wine.nix
|
||||||
../containers/dev.nix
|
../containers/dev.nix
|
||||||
|
../containers/gui.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# locale
|
# locale
|
||||||
@ -60,9 +61,9 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
hypr-contrib.packages."${VARIABLES.system}".grimblast
|
hypr-contrib.packages."${VARIABLES.system}".grimblast
|
||||||
nix-gaming.packages."${VARIABLES.system}".osu-stable
|
nix-gaming.packages."${VARIABLES.system}".osu-stable
|
||||||
ameba
|
|
||||||
crystal-flake.packages.${VARIABLES.system}.crystal
|
crystal-flake.packages.${VARIABLES.system}.crystal
|
||||||
crystal-flake.packages.${VARIABLES.system}.crystalline
|
crystal-flake.packages.${VARIABLES.system}.crystalline
|
||||||
|
ameba
|
||||||
waycorner
|
waycorner
|
||||||
nwg-dock-hyprland
|
nwg-dock-hyprland
|
||||||
slade
|
slade
|
||||||
@ -73,15 +74,9 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
treefmt
|
treefmt
|
||||||
jamesdsp
|
jamesdsp
|
||||||
|
|
||||||
# other
|
|
||||||
audacity
|
|
||||||
gimp
|
|
||||||
anki
|
|
||||||
logseq
|
logseq
|
||||||
mullvad-browser
|
mullvad-browser
|
||||||
spek
|
spek
|
||||||
keepassxc
|
|
||||||
libreoffice
|
|
||||||
|
|
||||||
gdu
|
gdu
|
||||||
fdupes
|
fdupes
|
||||||
@ -117,7 +112,6 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
sd
|
sd
|
||||||
shards
|
shards
|
||||||
smartmontools
|
smartmontools
|
||||||
sqlitebrowser
|
|
||||||
visidata
|
visidata
|
||||||
scc
|
scc
|
||||||
hwinfo
|
hwinfo
|
||||||
@ -128,12 +122,10 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
imagemagick
|
imagemagick
|
||||||
onefetch
|
onefetch
|
||||||
restic
|
restic
|
||||||
wails
|
|
||||||
watchexec
|
watchexec
|
||||||
memento
|
memento
|
||||||
mpvpaper
|
mpvpaper
|
||||||
timg
|
timg
|
||||||
kanjidraw
|
|
||||||
ventoy
|
ventoy
|
||||||
wf-recorder
|
wf-recorder
|
||||||
mdcat
|
mdcat
|
||||||
@ -143,6 +135,7 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
tessen
|
tessen
|
||||||
wtype
|
wtype
|
||||||
mtr
|
mtr
|
||||||
|
cointop
|
||||||
|
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
@ -181,59 +174,13 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
sharedModules = [
|
sharedModules = [
|
||||||
{
|
{
|
||||||
home.stateVersion = VARIABLES.stateVersion;
|
home.stateVersion = VARIABLES.stateVersion;
|
||||||
|
|
||||||
editorconfig = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
"*" = {
|
|
||||||
charset = "utf-8";
|
|
||||||
end_of_line = "lf";
|
|
||||||
insert_final_newline = true;
|
|
||||||
indent_size = 2;
|
|
||||||
indent_style = "space";
|
|
||||||
trim_trailing_whitespace = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
"*.md".indent_style = "tab";
|
|
||||||
|
|
||||||
"Makefile" = {
|
|
||||||
indent_style = "tab";
|
|
||||||
indent_size = 4;
|
|
||||||
};
|
|
||||||
|
|
||||||
"*.html" = {
|
|
||||||
indent_style = "tab";
|
|
||||||
indent_size = 4;
|
|
||||||
};
|
|
||||||
|
|
||||||
"*.go" = {
|
|
||||||
indent_style = "tab";
|
|
||||||
indent_size = 4;
|
|
||||||
};
|
|
||||||
|
|
||||||
"*.rs" = {
|
|
||||||
indent_style = "space";
|
|
||||||
indent_size = 4;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.bat.enable = true;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# systemd
|
systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Prevent hanging on shutdown
|
||||||
systemd.extraConfig = ''
|
services.logind.lidSwitch = "ignore"; # Don't suspend on lid close
|
||||||
DefaultTimeoutStopSec=10s
|
time.timeZone = "${VARIABLES.timezone}"; # Timezone
|
||||||
'';
|
|
||||||
|
|
||||||
# logind
|
|
||||||
services.logind.lidSwitch = "ignore";
|
|
||||||
|
|
||||||
# timezone
|
|
||||||
time.timeZone = "${VARIABLES.timezone}";
|
|
||||||
|
|
||||||
# user
|
# user
|
||||||
users = {
|
users = {
|
||||||
@ -252,9 +199,6 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
home.homeDirectory = "/home/${VARIABLES.username}";
|
home.homeDirectory = "/home/${VARIABLES.username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# dev
|
|
||||||
programs.npm.enable = true;
|
|
||||||
|
|
||||||
# networking
|
# networking
|
||||||
networking = {
|
networking = {
|
||||||
hostName = VARIABLES.hostname;
|
hostName = VARIABLES.hostname;
|
||||||
@ -343,5 +287,5 @@ let VARIABLES = import ./variables.nix; in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true; # Swap
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user