mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Cleanup
This commit is contained in:
parent
86a3de9311
commit
652b8599f8
11 changed files with 38 additions and 68 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, inputs, system, ... }:
|
{ config, lib, pkgs, inputs, system, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.mods;
|
cfg = config.mods;
|
||||||
res = "2560x1440";
|
|
||||||
in {
|
in {
|
||||||
# Hardware
|
# Hardware
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -10,19 +10,7 @@ in {
|
||||||
|
|
||||||
# System
|
# System
|
||||||
mods.user.name = "muon";
|
mods.user.name = "muon";
|
||||||
networking.hostName = cfg.user.name;
|
mods.home.file = ./home.nix;
|
||||||
|
|
||||||
# Home
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit system pkgs inputs; };
|
|
||||||
users."${cfg.user.name}" = {
|
|
||||||
imports = [
|
|
||||||
./home.nix
|
|
||||||
inputs.self.outputs.homeManagerModules.default
|
|
||||||
];
|
|
||||||
};
|
|
||||||
backupFileExtension = "bak";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
mods.desktop.enable = true;
|
mods.desktop.enable = true;
|
||||||
|
|
@ -42,7 +30,7 @@ in {
|
||||||
mods.unfree.nvidia.enable = true;
|
mods.unfree.nvidia.enable = true;
|
||||||
mods.unfree.minecraft.enable = true;
|
mods.unfree.minecraft.enable = true;
|
||||||
|
|
||||||
# Host specific
|
# Hardware preferences
|
||||||
|
|
||||||
## Mouse
|
## Mouse
|
||||||
services.xserver.libinput.mouse.accelProfile = "flat";
|
services.xserver.libinput.mouse.accelProfile = "flat";
|
||||||
|
|
@ -53,7 +41,7 @@ in {
|
||||||
name = "DP-2";
|
name = "DP-2";
|
||||||
config = {
|
config = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mode = res;
|
mode = "2560x1440";
|
||||||
position = "0x480";
|
position = "0x480";
|
||||||
primary = true;
|
primary = true;
|
||||||
rate = "144.00";
|
rate = "144.00";
|
||||||
|
|
@ -71,13 +59,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
arandr
|
|
||||||
];
|
|
||||||
|
|
||||||
# Backup environment
|
|
||||||
services.xserver.windowManager.qtile.enable = true;
|
|
||||||
|
|
||||||
# Version of first install
|
# Version of first install
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
{ pkgs, lib, osConfig,... }:
|
{ pkgs, lib, osConfig,... }:
|
||||||
let cfg = osConfig.mods; in {
|
let cfg = osConfig.mods; in {
|
||||||
# Home
|
|
||||||
home.username = cfg.user.name;
|
|
||||||
home.homeDirectory = "/home/${cfg.user.name}";
|
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
mods.xdg.enable = true;
|
mods.xdg.enable = true;
|
||||||
mods.social.enable = true;
|
mods.social.enable = true;
|
||||||
|
|
@ -16,7 +12,7 @@ let cfg = osConfig.mods; in {
|
||||||
mods.desktop.productivity.enable = true;
|
mods.desktop.productivity.enable = true;
|
||||||
mods.desktop.media.enable = true;
|
mods.desktop.media.enable = true;
|
||||||
|
|
||||||
# Host specific
|
# Hardware preferences
|
||||||
|
|
||||||
## Monitors
|
## Monitors
|
||||||
xsession.windowManager.i3.config.workspaceOutputAssign = [{
|
xsession.windowManager.i3.config.workspaceOutputAssign = [{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{ pkgs, lib, config, osConfig, ... }: {
|
{ pkgs, lib, config, osConfig, ... }: let
|
||||||
|
cfg = osConfig.mods;
|
||||||
|
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./terminal
|
./terminal
|
||||||
./desktop
|
./desktop
|
||||||
|
|
@ -8,4 +11,6 @@
|
||||||
|
|
||||||
# Let Home Manager install and manage itself
|
# Let Home Manager install and manage itself
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
home.username = cfg.user.name;
|
||||||
|
home.homeDirectory = "/home/${cfg.user.name}";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,6 @@
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
freetube
|
freetube
|
||||||
|
|
||||||
# Gaming
|
|
||||||
prismlauncher
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
# boot.loader.systemd-boot.enable = true;
|
boot.loader = lib.mkIf config.mods.xorg.enable {
|
||||||
# boot.plymouth.enable = true;
|
|
||||||
# boot.initrd.systemd.enable = true;
|
|
||||||
# boot.kernelParams = [ "quiet" ];
|
|
||||||
boot.loader = {
|
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
grub = {
|
grub = {
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@
|
||||||
./network.nix
|
./network.nix
|
||||||
./user.nix
|
./user.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
./home.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
modules/nixos/core/home.nix
Normal file
21
modules/nixos/core/home.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
networking.hostName = config.mods.user.name;
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
config = {
|
config = {
|
||||||
users.users.${config.mods.user.name} = {
|
users.users.${config.mods.user.name} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "docker" ];
|
extraGroups = [ "wheel" ];
|
||||||
initialPassword = "changeme";
|
initialPassword = "changeme";
|
||||||
shell = if config.programs.zsh.enable
|
shell = if config.programs.zsh.enable
|
||||||
then pkgs.zsh
|
then pkgs.zsh
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
{ pkgs, lib, config, ... }: let
|
{ pkgs, lib, config, ... }: let
|
||||||
# smoop = pkgs.callPackage ./smoop.nix {};
|
|
||||||
|
|
||||||
steam-xinit = pkgs.writeShellScriptBin "steam-xinit" ''
|
steam-xinit = pkgs.writeShellScriptBin "steam-xinit" ''
|
||||||
${lib.getExe pkgs.steam} &
|
${lib.getExe pkgs.steam} &
|
||||||
exec ${lib.getExe pkgs.openbox} &
|
exec ${lib.getExe pkgs.openbox} &
|
||||||
|
|
@ -69,34 +67,11 @@ in {
|
||||||
|
|
||||||
openbox
|
openbox
|
||||||
steam-xinit
|
steam-xinit
|
||||||
# smoop
|
|
||||||
novnc
|
novnc
|
||||||
tigervnc
|
|
||||||
xorg.xinit
|
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;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 6080 ];
|
networking.firewall.allowedTCPPorts = [ 6080 ];
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,5 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
xdg.portal.enable = true;
|
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue