Move workstation packages into sets

This commit is contained in:
Artemis Tosini 2021-01-10 06:27:22 +00:00
parent 4bbf74adc3
commit 7fb60a28eb
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
11 changed files with 61 additions and 65 deletions

View file

@ -4,8 +4,6 @@
imports = [ imports = [
./private ./private
./system/current ./system/current
./packages.nix
./fonts.nix
]; ];
nix = { nix = {
@ -25,58 +23,21 @@
earlySetup = true; earlySetup = true;
}; };
i18n.defaultLocale = "de_DE.UTF-8";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
time.timeZone = "Etc/UTC"; time.timeZone = "Etc/UTC";
environment = { environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
variables.TERMINAL = "alacritty";
enableDebugInfo = true;
};
services = { services.avahi = {
avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns = true;
publish.enable = true; publish.enable = true;
}; };
flatpak.enable = true;
fwupd.enable = true;
kbfs.enable = true;
keybase.enable = true;
pcscd.enable = true;
syncthing = {
enable = true;
user = "artemis";
dataDir = "/home/artemis";
};
udev.packages = [
(pkgs.callPackage ./externals/rules/uhk.nix { })
];
};
hardware = {
bluetooth.enable = true;
opengl.driSupport32Bit = true;
pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
support32Bit = true;
daemon.config.flat-volumes = "no";
};
};
networking.firewall.enable = false; networking.firewall.enable = false;
programs = { programs.fish.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
fish.enable = true;
};
users = { users = {
users.artemis = { users.artemis = {
@ -91,5 +52,5 @@
mutableUsers = false; mutableUsers = false;
}; };
systemd.extraConfig = "DefaultLimitCORE=infinity"; systemd.extraConfig = "DefaultLimitCORE=infinity";
security.pam.loginLimits = [{ domain = "*"; item = "core"; type = "hard"; value = "infinity"; }]; security.pam.loginLimits = [ { domain = "*"; item = "core"; type = "hard"; value = "infinity"; } ];
} }

View file

@ -18,7 +18,7 @@
, libXrandr , libXrandr
}: }:
let let
jlinkVersion = "690a"; jlinkVersion = "694";
architecture = { architecture = {
x86_64-linux = "x86_64"; x86_64-linux = "x86_64";
@ -28,10 +28,10 @@ let
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
sha256 = { sha256 = {
x86_64-linux = "1cn51q1i6lapcz1xs28aa8gydvr3g25g78iwx11xgvp8bwaw0qws"; x86_64-linux = "1y1i30y8h9pq345r25wycnfns1zz0y3g7b66a82nx3075zx2n4lm";
i686-linux = "107zdzgsshq80r2sxkfrfw5vs5bnyvf1g8payhd1x91r4cr9f01z"; i686-linux = "1vdfxiwwxxr6vjybd0xl8iq79b5j7kd10bk9j22ghkg7b4mbsjrm";
armv7l-linux = "0wqf390kw0h3ysiw1i4dd10dmcll496673w41p685zln9xxypkmg"; armv7l-linux = "0hpiirzy1921fca7b0bcrmc48r03r0lv0qph6xnqdkv66iplj1gz";
aarch64-linux = "1mw037245b44adkdcbg7xn9ng70chsfk0id8acc28hz43a92jb8n"; aarch64-linux = "0c1sbyil6a97pr9ln9jf0ih6zmxvkl9lvxy86bbnbs8wrkgjfp8g";
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
url = "https://www.segger.com/downloads/jlink/JLink_Linux_V${jlinkVersion}_${architecture}.tgz"; url = "https://www.segger.com/downloads/jlink/JLink_Linux_V${jlinkVersion}_${architecture}.tgz";

View file

@ -1,9 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
call = jlink = pkgs.callPackage ../externals/packages/jlink { };
if (pkgs.targetPlatform.system == "x86_64-linux") then pkgs.pkgsi686Linux.callPackage
else pkgs.callPackage;
jlink = call ../externals/packages/jlink { };
in in
{ {
services.udev.packages = [ services.udev.packages = [

View file

@ -9,6 +9,7 @@ let
}); });
in in
{ {
imports = [ ./fonts.nix ];
security.polkit.enable = true; security.polkit.enable = true;
services = { services = {
accounts-daemon.enable = true; accounts-daemon.enable = true;

43
sets/workstation.nix Normal file
View file

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
{
imports = [
./sway.nix
./packages.nix
./pipewire.nix
./neovim
];
i18n.defaultLocale = "de_DE.UTF-8";
environment = {
variables.TERMINAL = "alacritty";
enableDebugInfo = true;
};
services = {
flatpak.enable = true;
fwupd.enable = true;
kbfs.enable = true;
keybase.enable = true;
pcscd.enable = true;
syncthing = {
enable = true;
user = "artemis";
dataDir = "/home/artemis";
};
udev.packages = [
(pkgs.callPackage ../externals/rules/uhk.nix { })
];
};
hardware = {
bluetooth.enable = true;
opengl.driSupport32Bit = true;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

View file

@ -5,9 +5,8 @@
./boot-config.nix ./boot-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
../../externals/wip-pinebook-pro/pinebook_pro.nix ../../externals/wip-pinebook-pro/pinebook_pro.nix
../../sets/neovim
../../sets/sway.nix
../../sets/wifi.nix ../../sets/wifi.nix
../../sets/workstation.nix
]; ];
networking.hostName = "mistmane"; networking.hostName = "mistmane";

View file

@ -10,9 +10,7 @@
../../sets/buildMachines.nix ../../sets/buildMachines.nix
../../sets/hacking.nix ../../sets/hacking.nix
../../sets/laptop.nix ../../sets/laptop.nix
../../sets/neovim ../../sets/workstation.nix
../../sets/pipewire.nix
../../sets/sway.nix
]; ];
networking.hostName = "rainbowdash"; networking.hostName = "rainbowdash";

View file

@ -8,9 +8,8 @@
../../sets/gpu/intel.nix ../../sets/gpu/intel.nix
../../sets/hacking.nix ../../sets/hacking.nix
../../sets/laptop.nix ../../sets/laptop.nix
../../sets/neovim
../../sets/ssh.nix ../../sets/ssh.nix
../../sets/sway.nix ../../sets/workstation.nix
]; ];
networking.hostName = "spike"; networking.hostName = "spike";

View file

@ -11,12 +11,10 @@
../../sets/gpu/amd.nix ../../sets/gpu/amd.nix
../../sets/hacking.nix ../../sets/hacking.nix
../../sets/hardware.nix ../../sets/hardware.nix
../../sets/neovim
../../sets/pipewire.nix
../../sets/printing.nix ../../sets/printing.nix
../../sets/ssh.nix ../../sets/ssh.nix
../../sets/sway.nix
../../sets/virtualization.nix ../../sets/virtualization.nix
../../sets/workstation.nix
]; ];
# Network # Network