mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
commit
e256b86334
7 changed files with 47 additions and 25 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./../../modules/core
|
./../../modules/core
|
||||||
# ./../../modules/home/nfs.nix
|
./../../modules/home/steam.nix
|
||||||
./../../modules/core/virtualization.nix
|
./../../modules/core/virtualization.nix
|
||||||
./../../modules/services/tailscale.nix
|
./../../modules/services/tailscale.nix
|
||||||
./../../modules/services/mpd.nix
|
./../../modules/services/mpd.nix
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
imports =
|
imports =
|
||||||
[ (import ./docker.nix) ]
|
[ (import ./docker.nix) ]
|
||||||
++ [ (import ./hardware.nix) ]
|
++ [ (import ./hardware.nix) ]
|
||||||
++ [ (import ./displaylink.nix) ]
|
# ++ [ (import ./displaylink.nix) ]
|
||||||
# ++ [(import ./printing.nix)]
|
# ++ [(import ./printing.nix)]
|
||||||
++ [ (import ./xserver.nix) ]
|
++ [ (import ./xserver.nix) ]
|
||||||
++ [ (import ./network.nix) ]
|
++ [ (import ./network.nix) ]
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[(import ./hardware.nix)]
|
[ (import ./hardware.nix) ]
|
||||||
++ [(import ./network.nix)]
|
++ [ (import ./network.nix) ]
|
||||||
++ [(import ./program.nix)]
|
++ [ (import ./program.nix) ]
|
||||||
++ [(import ./sshd.nix)]
|
++ [ (import ./sshd.nix) ]
|
||||||
++ [(import ./security.nix)]
|
++ [ (import ./security.nix) ]
|
||||||
++ [(import ./services.nix)]
|
++ [ (import ./services.nix) ]
|
||||||
++ [(import ./system.nix)]
|
++ [ (import ./system.nix) ]
|
||||||
++ [(import ./user.nix)];
|
++ [ (import ./user.nix) ]
|
||||||
|
++ [ (import ./virtualization.nix) ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
libvirtd.enable =
|
libvirtd.enable =
|
||||||
if (host == "violet") then
|
if (host == "violet") then
|
||||||
true
|
true
|
||||||
|
else if (host == "dandelion") then
|
||||||
|
true
|
||||||
else if (host == "sakura") then
|
else if (host == "sakura") then
|
||||||
true
|
true
|
||||||
else if (host == "yoshino") then
|
else if (host == "yoshino") then
|
||||||
|
|
@ -36,7 +38,7 @@
|
||||||
# { };
|
# { };
|
||||||
|
|
||||||
users.groups.libvirtd.members =
|
users.groups.libvirtd.members =
|
||||||
if (config.virtualisation.waydroid.enable == true) then [ username ] else [ ];
|
if (config.virtualisation.libvirtd.enable == true) then [ username ] else [ ];
|
||||||
|
|
||||||
# Enable qemu etc
|
# Enable qemu etc
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
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 {
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,25 @@
|
||||||
{ lib, pkgs, config, username, home-manager, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
username,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.liv.laptop;
|
cfg = config.liv.laptop;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.liv.laptop = {
|
options.liv.laptop = {
|
||||||
enable = mkEnableOption "Enable laptop";
|
enable = mkEnableOption "Enable laptop";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cifs-utils
|
||||||
|
powertop
|
||||||
|
];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -17,15 +29,18 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# DisplayLink
|
||||||
|
services.xserver.videoDrivers = [
|
||||||
|
"displaylink"
|
||||||
|
"modesetting"
|
||||||
|
];
|
||||||
|
systemd.services.dlm.wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# powertop
|
|
||||||
];
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = ["acpi_call"];
|
kernelModules = [ "acpi_call" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages;
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
[
|
|
||||||
acpi_call
|
acpi_call
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -41,6 +56,6 @@ in {
|
||||||
criticalPowerAction = "Hibernate";
|
criticalPowerAction = "Hibernate";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue