formating
This commit is contained in:
parent
63e412b597
commit
e634c42b23
11 changed files with 141 additions and 186 deletions
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.google-pixelbook
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -13,7 +6,7 @@
|
|||
../workstation
|
||||
];
|
||||
networking.hostName = "loki";
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
variables.address = "100.72.0.1";
|
||||
variables.swayScale = "1.1";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{lib, ...}: {
|
||||
{ lib, ... }: {
|
||||
options = {
|
||||
variables = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
default = { };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.wm.sway;
|
||||
dbus-sway-environment = pkgs.writeTextFile {
|
||||
name = "dbus-sway-environment";
|
||||
|
|
@ -30,7 +26,7 @@ with lib; let
|
|||
'';
|
||||
};
|
||||
in {
|
||||
options.wm.sway = {enable = mkEnableOption "wm: sway";};
|
||||
options.wm.sway = { enable = mkEnableOption "wm: sway"; };
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
adwaita-icon-theme
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.roles.auto-cpufreq;
|
||||
{ pkgs, inputs, config, lib, ... }:
|
||||
with lib;
|
||||
let cfg = config.roles.auto-cpufreq;
|
||||
in {
|
||||
options.roles.auto-cpufreq = {enable = mkEnableOption "roles auto-cpufreq";};
|
||||
options.roles.auto-cpufreq = {
|
||||
enable = mkEnableOption "roles auto-cpufreq";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.auto-cpufreq = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue