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,7 +1,7 @@
{ config, lib, pkgs, inputs, system, ... }:
let
cfg = config.mods;
res = "2560x1440";
in {
# Hardware
imports = [
@ -10,19 +10,7 @@ in {
# System
mods.user.name = "muon";
networking.hostName = cfg.user.name;
# Home
home-manager = {
extraSpecialArgs = { inherit system pkgs inputs; };
users."${cfg.user.name}" = {
imports = [
./home.nix
inputs.self.outputs.homeManagerModules.default
];
};
backupFileExtension = "bak";
};
mods.home.file = ./home.nix;
# Modules
mods.desktop.enable = true;
@ -42,7 +30,7 @@ in {
mods.unfree.nvidia.enable = true;
mods.unfree.minecraft.enable = true;
# Host specific
# Hardware preferences
## Mouse
services.xserver.libinput.mouse.accelProfile = "flat";
@ -53,7 +41,7 @@ in {
name = "DP-2";
config = {
enable = true;
mode = res;
mode = "2560x1440";
position = "0x480";
primary = true;
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
system.stateVersion = "23.05";
}

View file

@ -1,9 +1,5 @@
{ pkgs, lib, osConfig,... }:
let cfg = osConfig.mods; in {
# Home
home.username = cfg.user.name;
home.homeDirectory = "/home/${cfg.user.name}";
# Modules
mods.xdg.enable = true;
mods.social.enable = true;
@ -16,7 +12,7 @@ let cfg = osConfig.mods; in {
mods.desktop.productivity.enable = true;
mods.desktop.media.enable = true;
# Host specific
# Hardware preferences
## Monitors
xsession.windowManager.i3.config.workspaceOutputAssign = [{