This commit is contained in:
muon 2024-07-13 22:28:27 +00:00
parent 86a3de9311
commit 652b8599f8
11 changed files with 38 additions and 68 deletions

View file

@ -1,4 +1,7 @@
{ pkgs, lib, config, osConfig, ... }: {
{ pkgs, lib, config, osConfig, ... }: let
cfg = osConfig.mods;
in {
imports = [
./terminal
./desktop
@ -8,4 +11,6 @@
# Let Home Manager install and manage itself
programs.home-manager.enable = true;
home.username = cfg.user.name;
home.homeDirectory = "/home/${cfg.user.name}";
}

View file

@ -11,9 +11,6 @@
# Video
freetube
# Gaming
prismlauncher
];
};
}

View file

@ -1,9 +1,5 @@
{ pkgs, lib, config, ... }: {
# boot.loader.systemd-boot.enable = true;
# boot.plymouth.enable = true;
# boot.initrd.systemd.enable = true;
# boot.kernelParams = [ "quiet" ];
boot.loader = {
boot.loader = lib.mkIf config.mods.xorg.enable {
timeout = 0;
efi.canTouchEfiVariables = true;
grub = {

View file

@ -4,5 +4,6 @@
./network.nix
./user.nix
./nix.nix
./home.nix
];
}

View file

@ -0,0 +1,21 @@
{ pkgs, lib, config, inputs, system, ... }: let
cfg = config.mods;
in {
options.mods.home.file = lib.mkOption {
description = "home-manager configuration file";
};
config = {
home-manager = {
extraSpecialArgs = { inherit system pkgs inputs; };
users."${cfg.user.name}" = {
imports = [
cfg.home.file
inputs.self.outputs.homeManagerModules.default
];
};
backupFileExtension = "bak";
};
};
}

View file

@ -12,6 +12,8 @@
};
config = {
networking.hostName = config.mods.user.name;
networking.networkmanager.enable = true;
services.tailscale.enable = true;

View file

@ -7,7 +7,7 @@
config = {
users.users.${config.mods.user.name} = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
extraGroups = [ "wheel" ];
initialPassword = "changeme";
shell = if config.programs.zsh.enable
then pkgs.zsh

View file

@ -1,6 +1,4 @@
{ pkgs, lib, config, ... }: let
# smoop = pkgs.callPackage ./smoop.nix {};
steam-xinit = pkgs.writeShellScriptBin "steam-xinit" ''
${lib.getExe pkgs.steam} &
exec ${lib.getExe pkgs.openbox} &
@ -69,34 +67,11 @@ in {
openbox
steam-xinit
# smoop
novnc
tigervnc
xorg.xinit
# python3
# python3Packages.pip
# python3Packages.virtualenv
# python3Packages.tkinter
# python3Packages.xlib
# python3Packages.pillow
# python3Packages.python-dotenv
# python3Packages.pyautogui
# python3Packages.aiohttp
# python3Packages.discordpy
# python3Packages.opencv4
# stdenv.cc.cc.lib
# glib
# libglvnd
];
# environment.sessionVariables = rec {
# LD_LIBRARY_PATH =
# "${pkgs.lib.makeLibraryPath config.environment.systemPackages}:\
# ${pkgs.stdenv.cc.cc.lib.outPath}/lib:$LD_LIBRARY_PATH";
# };
services.xserver.enable = true;
networking.firewall.allowedTCPPorts = [ 6080 ];

View file

@ -20,9 +20,5 @@
enable = true;
remotePlay.openFirewall = true;
};
services.flatpak.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}