Various fixes

This commit is contained in:
Daniel Flanagan 2024-06-28 21:36:19 -05:00
parent 93173c3445
commit ed9ae0bd07
5 changed files with 79 additions and 91 deletions

View file

@ -151,6 +151,7 @@
homeManagerModules = import ./modules/home-manager { homeManagerModules = import ./modules/home-manager {
inherit home-manager helix nixosModules homeManagerModules pubkey overlays colors; inherit home-manager helix nixosModules homeManagerModules pubkey overlays colors;
inherit (nixpkgs) lib;
flakeInputs = self.inputs; flakeInputs = self.inputs;
}; };
@ -211,7 +212,30 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = with nixosModules; [ modules = with nixosModules; [
common common
outputs.diskoConfigurations.standard
hardware.nixosModules.framework-13-7040-amd
graphical-workstation
development-tools
laptop
gaming
./nixos/foxtrot.nix ./nixos/foxtrot.nix
{
home-manager.users.daniel = {
imports = with homeManagerModules; [
pass
senpai
iex
cargo
firefox-no-tabs
linux-desktop-environment-config
slippi.homeManagerModules.default
];
};
}
]; ];
}; };
@ -219,6 +243,15 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = with nixosModules; [ modules = with nixosModules; [
common common
outputs.diskoConfigurations.standard
hardware.nixosModules.lenovo-thinkpad-x1-yoga
graphical-workstation
development-tools
laptop
gaming
./nixos/thablet.nix ./nixos/thablet.nix
]; ];
}; };
@ -243,7 +276,7 @@
router = nixpkgs.lib.nixosSystem { router = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = with nixosModules; [ modules = with nixosModules; [
diskoConfiguration.unencrypted outputs.diskoConfiguration.unencrypted
common common
./nixos/router.nix ./nixos/router.nix
]; ];

View file

@ -80,6 +80,7 @@ nix-shell --packages git --run "sudo nix run \
# install # install
nix-shell --packages git \ nix-shell --packages git \
--run "sudo nixos-install \ --run "sudo nixos-install \
--no-write-lock-file \
--flake 'git+https://git.lyte.dev/lytedev/nix#${FLAKE_ATTR}' \ --flake 'git+https://git.lyte.dev/lytedev/nix#${FLAKE_ATTR}' \
--option trusted-substituters 'https://cache.nixos.org https://nix.h.lyte.dev' \ --option trusted-substituters 'https://cache.nixos.org https://nix.h.lyte.dev' \
--option trusted-public-keys 'cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= h.lyte.dev:HeVWtne31ZG8iMf+c15VY3/Mky/4ufXlfTpT8+4Xbs0='" --option trusted-public-keys 'cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= h.lyte.dev:HeVWtne31ZG8iMf+c15VY3/Mky/4ufXlfTpT8+4Xbs0='"

View file

@ -1,5 +1,6 @@
{ {
colors, colors,
lib,
flakeInputs, flakeInputs,
homeManagerModules, homeManagerModules,
home-manager, home-manager,
@ -462,7 +463,7 @@
programs.helix = { programs.helix = {
enable = true; enable = true;
package = helix.packages.${system}.helix; package = lib.mkForce helix.packages.${system}.helix;
languages = { languages = {
language-server = { language-server = {
lexical = { lexical = {

View file

@ -1,32 +1,6 @@
{ {pkgs, ...}: {
lib,
# config,
inputs,
outputs,
pkgs,
...
}: let
scale = 1.5;
in {
networking.hostName = "foxtrot"; networking.hostName = "foxtrot";
imports = with outputs.nixosModules; [ imports = [
{
nixpkgs.overlays = [
outputs.overlays.modifications
];
}
outputs.diskoConfigurations.standard
inputs.hardware.nixosModules.framework-13-7040-amd
desktop-usage
# gnome
printing
kde-plasma
podman
lutris
postgres
wifi
# hyprland
steam
{ {
# laptop power management # laptop power management
services.upower.enable = true; services.upower.enable = true;
@ -77,13 +51,6 @@ in {
}; };
home-manager.users.daniel = { home-manager.users.daniel = {
imports = with outputs.homeManagerModules; [
sway
pass
firefox-no-tabs
# wallpaper-manager
# hyprland
];
home = { home = {
stateVersion = "24.05"; stateVersion = "24.05";
pointerCursor = { pointerCursor = {
@ -91,41 +58,37 @@ in {
}; };
}; };
wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {
settings = { # settings = {
env = [ # env = [
"EWW_BAR_MON,0" # "EWW_BAR_MON,0"
]; # ];
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # # See https://wiki.hyprland.org/Configuring/Keywords/ for more
monitor = [ # monitor = [
"eDP-1,2256x1504@60,0x0,${toString scale}" # "eDP-1,2256x1504@60,0x0,${toString scale}"
]; # ];
}; # };
}; # };
wayland.windowManager.sway = { # wayland.windowManager.sway = {
config = { # config = {
output = { # output = {
"BOE 0x0BCA Unknown" = { # "BOE 0x0BCA Unknown" = {
mode = "2256x1504@60Hz"; # mode = "2256x1504@60Hz";
position = "0,0"; # position = "0,0";
scale = toString scale; # scale = toString scale;
}; # };
"Dell Inc. DELL U2720Q D3TM623" = { # "Dell Inc. DELL U2720Q D3TM623" = {
# desktop left vertical monitor # # desktop left vertical monitor
mode = "1920x1080@60Hz"; # mode = "1920x1080@60Hz";
# transform = "90"; # # transform = "90";
# scale = "1.5"; # # scale = "1.5";
position = "${toString (builtins.floor (2256 / scale))},0"; # position = "${toString (builtins.floor (2256 / scale))},0";
}; # };
}; # };
}; # };
}; # };
};
home-manager.users.valerie = {
home.stateVersion = "24.05";
}; };
hardware.opengl.extraPackages = [ hardware.opengl.extraPackages = [

View file

@ -1,31 +1,11 @@
{ {
inputs,
outputs,
lib, lib,
config, config,
modulesPath,
... ...
}: { }: {
networking.hostName = "thablet"; networking.hostName = "thablet";
imports = with outputs.nixosModules; [
(modulesPath + "/installer/scan/not-detected.nix")
outputs.diskoConfigurations.standard
inputs.hardware.nixosModules.lenovo-thinkpad-x1-yoga
desktop-usage
fonts
steam
# gnome
kde-plasma
wifi
flanfam
flanfamkiosk
];
home-manager.users.daniel = { home-manager.users.daniel = {
imports = with outputs.homeManagerModules; [
sway
];
}; };
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -71,5 +51,15 @@
powerOnBoot = true; powerOnBoot = true;
}; };
system.stateVersion = "23.11"; networking = {
firewall = let
terraria = 7777;
stardew-valley = 24642;
in {
allowedTCPPorts = [terraria stardew-valley];
allowedUDPPorts = [terraria stardew-valley];
};
};
system.stateVersion = "24.05";
} }