cleanup + laptop config i guess

This commit is contained in:
krizej 2024-08-01 23:35:09 +02:00
parent ea8471ff8a
commit 2402a649a5
5 changed files with 100 additions and 16 deletions

View file

@ -64,7 +64,6 @@
git.enable = true; git.enable = true;
other-desktop-programs.enable = true; other-desktop-programs.enable = true;
other-dev-programs.enable = true; other-dev-programs.enable = true;
gaming.enable = true;
documentation.enable = true; documentation.enable = true;
theme.enable = true; theme.enable = true;
printing.enable = true; printing.enable = true;
@ -125,6 +124,15 @@
output = monitors.secondary; output = monitors.secondary;
side = "left"; side = "left";
}; };
gaming = {
enable = true;
quake = true;
homm3 = true;
dosbox = true;
ror2 = true;
steam = true;
};
}; };
}; };
}; };

View file

@ -3,4 +3,87 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
config = let
monitor = "eDP-1";
user = config.chuj.system.user;
in {
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
home-manager.users.${user}.home.packages = with pkgs; [
pamixer
yt-dlp
aseprite
cloc
viu
];
chuj = {
system = {
user = "krizej";
host = "laptop";
platform = "x86_64-linux";
};
home-manager.enable = true;
stuff = {
xserver.enable = true;
sddm.enable = true;
alacritty.enable = true;
vim.enable = true;
firefox.enable = true;
thunar.enable = true;
flameshot.enable = true;
git.enable = true;
other-desktop-programs.enable = true;
other-dev-programs.enable = true;
documentation.enable = true;
theme.enable = true;
printing.enable = true;
gaming = {
enable = true;
homm3 = true;
};
fish = {
enable = true;
extraAliases = {
"rebuild" = "sudo nixos-rebuild switch --flake ~/nix#laptop -v";
};
};
i3 = {
enable = true;
communicators = {
autostart = false;
workspace = null;
};
};
ssh = {
enable = true;
keys = {
"git@github.com".file = "github";
"forgejo@git.jacekpoz.pl".file = "jacekgit";
"krizej@192.168.1.12".file = "rpi";
"discord@zasadzka.pl" = {
file = "zasadzka";
env."TERM" = "xterm-256color";
};
};
};
dunst = {
output = monitor;
side = "right";
enable = true;
};
};
};
};
} }

View file

@ -3,18 +3,17 @@
cfg = config.chuj.stuff.gaming; cfg = config.chuj.stuff.gaming;
user = config.chuj.system.user; user = config.chuj.system.user;
in { in {
options.chuj.stuff.gaming = let options.chuj.stuff.gaming = {
gameOption = mkOption { type = types.bool; default = true; };
in {
enable = mkEnableOption "gaming"; enable = mkEnableOption "gaming";
quake = gameOption; quake = mkEnableOption "quake";
homm3 = gameOption; homm3 = mkEnableOption "homm3";
dosbox = gameOption; dosbox = mkEnableOption "dosbox";
ror2 = gameOption; ror2 = mkEnableOption "ror2";
steam = mkEnableOption "steam";
}; };
config = mkIf cfg.enable { config = {
programs.steam.enable = true; programs.steam.enable = cfg.steam;
home-manager.users.${user}.home.packages = with pkgs; ([ home-manager.users.${user}.home.packages = with pkgs; ([
wineWowPackages.stable wineWowPackages.stable

View file

@ -5,7 +5,6 @@
in { in {
options.chuj.stuff.other-dev-programs = { options.chuj.stuff.other-dev-programs = {
enable = mkEnableOption "other-dev-programs"; enable = mkEnableOption "other-dev-programs";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -11,11 +11,6 @@ in {
enable = true; enable = true;
drivers = [ pkgs.brlaser ]; drivers = [ pkgs.brlaser ];
}; };
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
hardware.printers = { hardware.printers = {
ensurePrinters = [ ensurePrinters = [
{ {