mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: remove server since unused, remove overlay
This commit is contained in:
parent
57245a24e6
commit
fb39e23864
2 changed files with 2 additions and 62 deletions
12
flake.nix
12
flake.nix
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
outputs = { nixpkgs, self, catppuccin, ...} @ inputs:
|
outputs = { nixpkgs, self, catppuccin, ...} @ inputs:
|
||||||
let
|
let
|
||||||
selfPkgs = import ./pkgs;
|
# selfPkgs = import ./pkgs;
|
||||||
username = "liv";
|
username = "liv";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
overlays.default = selfPkgs.overlay;
|
# overlays.default = selfPkgs.overlay;
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
desktop = nixpkgs.lib.nixosSystem {
|
desktop = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
@ -80,14 +80,6 @@
|
||||||
)];
|
)];
|
||||||
specialArgs = { host="vm"; inherit self inputs username ; };
|
specialArgs = { host="vm"; inherit self inputs username ; };
|
||||||
};
|
};
|
||||||
server = nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
modules = [(
|
|
||||||
import ./hosts/server
|
|
||||||
)];
|
|
||||||
specialArgs = { host="server"; inherit self inputs username ; };
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
{ pkgs, config, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./../../modules/core/default-server.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acpi
|
|
||||||
powertop
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
|
||||||
thermald.enable = true;
|
|
||||||
# cpupower-gui.enable = true;
|
|
||||||
# power-profiles-daemon.enable = true;
|
|
||||||
|
|
||||||
upower = {
|
|
||||||
enable = true;
|
|
||||||
percentageLow = 20;
|
|
||||||
percentageCritical = 5;
|
|
||||||
percentageAction = 3;
|
|
||||||
criticalPowerAction = "PowerOff";
|
|
||||||
};
|
|
||||||
|
|
||||||
auto-cpufreq = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
battery = {
|
|
||||||
governor = "powersave";
|
|
||||||
turbo = "auto";
|
|
||||||
};
|
|
||||||
charger = {
|
|
||||||
governor = "performance";
|
|
||||||
turbo = "auto";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sshd.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelModules = ["acpi_call"];
|
|
||||||
extraModulePackages = with config.boot.kernelPackages;
|
|
||||||
[
|
|
||||||
acpi_call
|
|
||||||
cpupower
|
|
||||||
];
|
|
||||||
# ++ [pkgs.cpupower-gui];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue