mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Add muvo
This commit is contained in:
parent
ddf5611eeb
commit
2b5d0bf459
5 changed files with 197 additions and 0 deletions
62
hosts/muvo/configuration.nix
Normal file
62
hosts/muvo/configuration.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
{ config, lib, pkgs, inputs, system, sources, modulesPath, ... }:
|
||||||
|
let cfg = config.mods;
|
||||||
|
|
||||||
|
in {
|
||||||
|
# Hardware
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
"${
|
||||||
|
builtins.fetchTarball {
|
||||||
|
url =
|
||||||
|
"https://github.com/nix-community/disko/archive/refs/tags/v1.12.0.tar.gz";
|
||||||
|
sha256 = "0wbx518d2x54yn4xh98cgm65wvj0gpy6nia6ra7ns4j63hx14fkq";
|
||||||
|
}
|
||||||
|
}/module.nix"
|
||||||
|
./disk-config.nix
|
||||||
|
# (inputs.nixpkgs
|
||||||
|
# + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with inputs.nix-alien.packages.${system};
|
||||||
|
[ nix-alien ];
|
||||||
|
|
||||||
|
# System
|
||||||
|
mods.user.name = "muon";
|
||||||
|
networking.hostName = "murk";
|
||||||
|
networking.hostId = "a2309090";
|
||||||
|
mods.home.file = ./home.nix;
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
mods.desktop.enable = true;
|
||||||
|
mods.boot.enable = true;
|
||||||
|
|
||||||
|
mods.theme.enable = true;
|
||||||
|
mods.theme.scheme = "woodland";
|
||||||
|
mods.theme.wallpaper = ./wallpaper.png;
|
||||||
|
|
||||||
|
services.xserver.windowManager.i3.enable = true;
|
||||||
|
|
||||||
|
mods.impermanence.enable = true;
|
||||||
|
|
||||||
|
# Persist
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
directories = [ "/etc/NetworkManager" "/var/lib/NetworkManager" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Hardware preferences
|
||||||
|
environment.variables = {
|
||||||
|
WINIT_HIDPI_FACTOR = "1";
|
||||||
|
WINIT_X11_SCALE_FACTOR = "1";
|
||||||
|
};
|
||||||
|
|
||||||
|
## Laptop
|
||||||
|
powerManagement.enable = true;
|
||||||
|
services.thermald.enable = true;
|
||||||
|
services.tlp.enable = true;
|
||||||
|
|
||||||
|
## Mouse
|
||||||
|
services.libinput.mouse.accelProfile = "flat";
|
||||||
|
|
||||||
|
# Version of first install
|
||||||
|
system.stateVersion = "23.05";
|
||||||
|
}
|
||||||
72
hosts/muvo/disk-config.nix
Normal file
72
hosts/muvo/disk-config.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
{
|
||||||
|
disko.devices = {
|
||||||
|
disk = {
|
||||||
|
main = {
|
||||||
|
type = "disk";
|
||||||
|
device = "/dev/sda";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = {
|
||||||
|
ESP = {
|
||||||
|
size = "512M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "umask=0077" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
luks = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "crypted";
|
||||||
|
# disable settings.keyFile if you want to use interactive password entry
|
||||||
|
#passwordFile = "/tmp/secret.key"; # Interactive
|
||||||
|
# settings = {
|
||||||
|
# allowDiscards = true;
|
||||||
|
# keyFile = "/tmp/secret.key";
|
||||||
|
# };
|
||||||
|
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
|
||||||
|
content = {
|
||||||
|
type = "btrfs";
|
||||||
|
extraArgs = [ "-f" ];
|
||||||
|
subvolumes = {
|
||||||
|
"/root" = {
|
||||||
|
mountpoint = "/";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/home" = {
|
||||||
|
mountpoint = "/home";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/nix" = {
|
||||||
|
mountpoint = "/nix";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/persist" = {
|
||||||
|
mountpoint = "/persist";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/log" = {
|
||||||
|
mountpoint = "/var/log";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"/swap" = {
|
||||||
|
mountpoint = "/swap";
|
||||||
|
swap.swapfile.size = "4G";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/persist".neededForBoot = true;
|
||||||
|
fileSystems."/var/log".neededForBoot = true;
|
||||||
|
}
|
||||||
18
hosts/muvo/hardware-configuration.nix
Normal file
18
hosts/muvo/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
45
hosts/muvo/home.nix
Normal file
45
hosts/muvo/home.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = osConfig.mods;
|
||||||
|
in {
|
||||||
|
imports = [inputs.impermanence.homeManagerModules.impermanence];
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
mods.xdg.enable = true;
|
||||||
|
mods.i3.enable = true;
|
||||||
|
mods.battery.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 = false;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
pulseaudio
|
||||||
|
pavucontrol
|
||||||
|
alsa-utils
|
||||||
|
];
|
||||||
|
|
||||||
|
# Hardware preferences
|
||||||
|
## Monitors
|
||||||
|
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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Version of first install
|
||||||
|
home.stateVersion = "23.05";
|
||||||
|
}
|
||||||
BIN
hosts/muvo/wallpaper.png
Normal file
BIN
hosts/muvo/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 MiB |
Loading…
Add table
Add a link
Reference in a new issue