Move workstation packages into sets
This commit is contained in:
parent
4bbf74adc3
commit
7fb60a28eb
|
@ -4,8 +4,6 @@
|
|||
imports = [
|
||||
./private
|
||||
./system/current
|
||||
./packages.nix
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
@ -25,58 +23,21 @@
|
|||
earlySetup = true;
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
time.timeZone = "Etc/UTC";
|
||||
|
||||
environment = {
|
||||
variables.TERMINAL = "alacritty";
|
||||
enableDebugInfo = true;
|
||||
};
|
||||
environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
|
||||
|
||||
services = {
|
||||
avahi = {
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = 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;
|
||||
|
||||
programs = {
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
fish.enable = true;
|
||||
};
|
||||
programs.fish.enable = true;
|
||||
|
||||
users = {
|
||||
users.artemis = {
|
||||
|
@ -91,5 +52,5 @@
|
|||
mutableUsers = false;
|
||||
};
|
||||
systemd.extraConfig = "DefaultLimitCORE=infinity";
|
||||
security.pam.loginLimits = [{ domain = "*"; item = "core"; type = "hard"; value = "infinity"; }];
|
||||
security.pam.loginLimits = [ { domain = "*"; item = "core"; type = "hard"; value = "infinity"; } ];
|
||||
}
|
||||
|
|
10
externals/packages/jlink/default.nix
vendored
10
externals/packages/jlink/default.nix
vendored
|
@ -18,7 +18,7 @@
|
|||
, libXrandr
|
||||
}:
|
||||
let
|
||||
jlinkVersion = "690a";
|
||||
jlinkVersion = "694";
|
||||
|
||||
architecture = {
|
||||
x86_64-linux = "x86_64";
|
||||
|
@ -28,10 +28,10 @@ let
|
|||
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
||||
|
||||
sha256 = {
|
||||
x86_64-linux = "1cn51q1i6lapcz1xs28aa8gydvr3g25g78iwx11xgvp8bwaw0qws";
|
||||
i686-linux = "107zdzgsshq80r2sxkfrfw5vs5bnyvf1g8payhd1x91r4cr9f01z";
|
||||
armv7l-linux = "0wqf390kw0h3ysiw1i4dd10dmcll496673w41p685zln9xxypkmg";
|
||||
aarch64-linux = "1mw037245b44adkdcbg7xn9ng70chsfk0id8acc28hz43a92jb8n";
|
||||
x86_64-linux = "1y1i30y8h9pq345r25wycnfns1zz0y3g7b66a82nx3075zx2n4lm";
|
||||
i686-linux = "1vdfxiwwxxr6vjybd0xl8iq79b5j7kd10bk9j22ghkg7b4mbsjrm";
|
||||
armv7l-linux = "0hpiirzy1921fca7b0bcrmc48r03r0lv0qph6xnqdkv66iplj1gz";
|
||||
aarch64-linux = "0c1sbyil6a97pr9ln9jf0ih6zmxvkl9lvxy86bbnbs8wrkgjfp8g";
|
||||
}.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
||||
|
||||
url = "https://www.segger.com/downloads/jlink/JLink_Linux_V${jlinkVersion}_${architecture}.tgz";
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
call =
|
||||
if (pkgs.targetPlatform.system == "x86_64-linux") then pkgs.pkgsi686Linux.callPackage
|
||||
else pkgs.callPackage;
|
||||
jlink = call ../externals/packages/jlink { };
|
||||
jlink = pkgs.callPackage ../externals/packages/jlink { };
|
||||
in
|
||||
{
|
||||
services.udev.packages = [
|
||||
|
|
|
@ -9,6 +9,7 @@ let
|
|||
});
|
||||
in
|
||||
{
|
||||
imports = [ ./fonts.nix ];
|
||||
security.polkit.enable = true;
|
||||
services = {
|
||||
accounts-daemon.enable = true;
|
||||
|
|
43
sets/workstation.nix
Normal file
43
sets/workstation.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -5,9 +5,8 @@
|
|||
./boot-config.nix
|
||||
./hardware-configuration.nix
|
||||
../../externals/wip-pinebook-pro/pinebook_pro.nix
|
||||
../../sets/neovim
|
||||
../../sets/sway.nix
|
||||
../../sets/wifi.nix
|
||||
../../sets/workstation.nix
|
||||
];
|
||||
|
||||
networking.hostName = "mistmane";
|
||||
|
|
|
@ -10,9 +10,7 @@
|
|||
../../sets/buildMachines.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/laptop.nix
|
||||
../../sets/neovim
|
||||
../../sets/pipewire.nix
|
||||
../../sets/sway.nix
|
||||
../../sets/workstation.nix
|
||||
];
|
||||
|
||||
networking.hostName = "rainbowdash";
|
||||
|
|
|
@ -8,9 +8,8 @@
|
|||
../../sets/gpu/intel.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/laptop.nix
|
||||
../../sets/neovim
|
||||
../../sets/ssh.nix
|
||||
../../sets/sway.nix
|
||||
../../sets/workstation.nix
|
||||
];
|
||||
|
||||
networking.hostName = "spike";
|
||||
|
|
|
@ -11,12 +11,10 @@
|
|||
../../sets/gpu/amd.nix
|
||||
../../sets/hacking.nix
|
||||
../../sets/hardware.nix
|
||||
../../sets/neovim
|
||||
../../sets/pipewire.nix
|
||||
../../sets/printing.nix
|
||||
../../sets/ssh.nix
|
||||
../../sets/sway.nix
|
||||
../../sets/virtualization.nix
|
||||
../../sets/workstation.nix
|
||||
];
|
||||
|
||||
# Network
|
||||
|
|
Loading…
Reference in a new issue