mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add muho
This commit is contained in:
parent
4dc6ab7864
commit
d6558cdbeb
4 changed files with 124 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
|
@ -17,9 +17,7 @@
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
pkgs = import inputs.nixpkgs {
|
pkgs = import inputs.nixpkgs { inherit system; };
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
|
|
||||||
utils = import ./utils.nix { inherit inputs system; };
|
utils = import ./utils.nix { inherit inputs system; };
|
||||||
in {
|
in {
|
||||||
|
|
@ -30,6 +28,9 @@
|
||||||
# laptop
|
# laptop
|
||||||
muop = utils.mkHost ./hosts/muop/configuration.nix;
|
muop = utils.mkHost ./hosts/muop/configuration.nix;
|
||||||
|
|
||||||
|
# vps
|
||||||
|
muho = utils.mkHost ./hosts/muho/configuration.nix;
|
||||||
|
|
||||||
# vps
|
# vps
|
||||||
mups = utils.mkHost ./hosts/mups/configuration.nix;
|
mups = utils.mkHost ./hosts/mups/configuration.nix;
|
||||||
|
|
||||||
|
|
|
||||||
66
hosts/muho/configuration.nix
Normal file
66
hosts/muho/configuration.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
{ config, lib, pkgs, inputs, system, ... }:
|
||||||
|
let cfg = config.mods;
|
||||||
|
|
||||||
|
in {
|
||||||
|
# Hardware
|
||||||
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
|
environment.systemPackages = with inputs.nix-alien.packages.${system};
|
||||||
|
[ nix-alien ];
|
||||||
|
|
||||||
|
# System
|
||||||
|
mods.user.name = "muon";
|
||||||
|
networking.hostName = "muho";
|
||||||
|
mods.home.file = ./home.nix;
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
mods.desktop.enable = true;
|
||||||
|
mods.desktop.wayland.enable = false;
|
||||||
|
mods.desktop.gaming.enable = true;
|
||||||
|
mods.boot.enable = true;
|
||||||
|
|
||||||
|
mods.theme.enable = true;
|
||||||
|
mods.theme.scheme = "woodland";
|
||||||
|
|
||||||
|
mods.containers.steam.enable = false;
|
||||||
|
mods.server.media.enable = false;
|
||||||
|
mods.server.astral.enable = false;
|
||||||
|
mods.server.astral.autoStart = false;
|
||||||
|
|
||||||
|
mods.docker.media.enable = false;
|
||||||
|
|
||||||
|
mods.server.sync.enable = false;
|
||||||
|
mods.tailscale.enable = false;
|
||||||
|
mods.openvpn.enable = false;
|
||||||
|
mods.wireguard.enable = false;
|
||||||
|
|
||||||
|
services.xserver.windowManager.i3.enable = true;
|
||||||
|
|
||||||
|
# Proprietary </3
|
||||||
|
mods.unfree.steam.enable = true;
|
||||||
|
mods.unfree.nvidia.enable = false;
|
||||||
|
mods.unfree.minecraft.enable = false;
|
||||||
|
# services.flatpak.enable = true;
|
||||||
|
|
||||||
|
# Hardware preferences
|
||||||
|
|
||||||
|
## Mouse
|
||||||
|
services.libinput.mouse.accelProfile = "flat";
|
||||||
|
|
||||||
|
## Monitors
|
||||||
|
mods.monitors = {
|
||||||
|
primary = {
|
||||||
|
name = "eDP-1";
|
||||||
|
config = {
|
||||||
|
enable = true;
|
||||||
|
mode = "1920x1080";
|
||||||
|
position = "0x0";
|
||||||
|
primary = true;
|
||||||
|
rate = "60.00";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Version of first install
|
||||||
|
system.stateVersion = "23.05";
|
||||||
|
}
|
||||||
52
hosts/muho/home.nix
Normal file
52
hosts/muho/home.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
{ pkgs, lib, osConfig,... }:
|
||||||
|
let cfg = osConfig.mods; in {
|
||||||
|
# Modules
|
||||||
|
mods.xdg.enable = true;
|
||||||
|
mods.social.enable = true;
|
||||||
|
mods.i3.enable = true;
|
||||||
|
mods.terminal.zsh.enable = true;
|
||||||
|
mods.terminal.emulator.enable = true;
|
||||||
|
mods.terminal.development.enable = true;
|
||||||
|
mods.terminal.tools.enable = true;
|
||||||
|
mods.desktop.development.enable = true;
|
||||||
|
mods.desktop.productivity.enable = true;
|
||||||
|
mods.desktop.media.enable = true;
|
||||||
|
|
||||||
|
# Hardware preferences
|
||||||
|
|
||||||
|
## Monitors
|
||||||
|
xsession.windowManager.i3.config.workspaceOutputAssign = [{
|
||||||
|
workspace = "1";
|
||||||
|
output = "${cfg.monitors.primary.name}";
|
||||||
|
}];
|
||||||
|
services.autorandr.enable = true;
|
||||||
|
programs.autorandr = {
|
||||||
|
enable = true;
|
||||||
|
hooks.postswitch = {
|
||||||
|
"notify-i3" = "${pkgs.i3}/bin/i3-msg restart";
|
||||||
|
"set-wallpaper" = ''
|
||||||
|
${lib.getExe pkgs.feh} --bg-fill --nofehbg ${./wallpaper.png}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
profiles.default = {
|
||||||
|
fingerprint = {
|
||||||
|
"${cfg.monitors.primary.name}" = "00ffffffffffff0030e4190500000000001a01049522137803a1c59459578f27205054000000010101010101010101010101010101012e3680a070381f403020350058c210000019222480a070381f403020350058c210000019000000fd00283c43430e010a20202020202000000002000c47ff0a3c6e1f182b6e000000001c";
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
"${cfg.monitors.primary.name}" =
|
||||||
|
cfg.monitors.primary.config;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# wayland.windowManager.hyprland.settings = {
|
||||||
|
# monitor = [
|
||||||
|
# "DP-2,2560x1440@144,0x480,1"
|
||||||
|
# "HDMI-A-2,1920x1080,2560x0,1,transform,3"
|
||||||
|
# ];
|
||||||
|
# input.sensitivity = -0.4;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# Version of first install
|
||||||
|
home.stateVersion = "23.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue