mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
Compare commits
7 commits
a060557360
...
efff74008b
| Author | SHA1 | Date | |
|---|---|---|---|
| efff74008b | |||
| 53c085fa03 | |||
| 25d6d805e1 | |||
| 1e9ad6c6b3 | |||
| 6b0bf699b7 | |||
| 341a99b1fb | |||
| a711bf5dd6 |
5 changed files with 35 additions and 16 deletions
|
|
@ -9,7 +9,7 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./../../modules/core
|
||||
# ./../../modules/home/nfs.nix
|
||||
./../../modules/home/steam.nix
|
||||
./../../modules/core/virtualization.nix
|
||||
./../../modules/services/tailscale.nix
|
||||
./../../modules/services/mpd.nix
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
imports =
|
||||
[ (import ./docker.nix) ]
|
||||
++ [ (import ./hardware.nix) ]
|
||||
++ [ (import ./displaylink.nix) ]
|
||||
# ++ [ (import ./displaylink.nix) ]
|
||||
# ++ [(import ./printing.nix)]
|
||||
++ [ (import ./xserver.nix) ]
|
||||
++ [ (import ./network.nix) ]
|
||||
|
|
|
|||
3
modules/home/steam.nix
Normal file
3
modules/home/steam.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.steam.enable = true;
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ cifs-utils ];
|
||||
home-manager = {
|
||||
users.${username} = {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -1,13 +1,25 @@
|
|||
{ lib, pkgs, config, username, home-manager, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
username,
|
||||
home-manager,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.laptop;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.liv.laptop = {
|
||||
enable = mkEnableOption "Enable laptop";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
powertop
|
||||
];
|
||||
home-manager = {
|
||||
users.${username} = {
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -17,22 +29,25 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# DisplayLink
|
||||
services.xserver.videoDrivers = [
|
||||
"displaylink"
|
||||
"modesetting"
|
||||
];
|
||||
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# powertop
|
||||
];
|
||||
boot = {
|
||||
kernelModules = ["acpi_call"];
|
||||
extraModulePackages = with config.boot.kernelPackages;
|
||||
[
|
||||
acpi_call
|
||||
];
|
||||
};
|
||||
services = {
|
||||
kernelModules = [ "acpi_call" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
acpi_call
|
||||
];
|
||||
};
|
||||
services = {
|
||||
thermald.enable = true;
|
||||
power-profiles-daemon.enable = true;
|
||||
|
||||
|
||||
upower = {
|
||||
enable = true;
|
||||
percentageLow = 20;
|
||||
|
|
@ -41,6 +56,6 @@ in {
|
|||
criticalPowerAction = "Hibernate";
|
||||
};
|
||||
};
|
||||
# powerManagement.powertop.enable = true;
|
||||
powerManagement.powertop.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue