mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-18 01:18:20 +01:00
Compare commits
No commits in common. "15f2eb9eb53ee94d1e12a245afc536f87f0f7204" and "03f91f3817690b55094848801eed7ee578c9ea17" have entirely different histories.
15f2eb9eb5
...
03f91f3817
5 changed files with 46 additions and 25 deletions
|
|
@ -69,6 +69,13 @@ in
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
|
# btrfs options
|
||||||
|
fileSystems = {
|
||||||
|
"/".options = [ "compress=zstd" ];
|
||||||
|
"/home".options = [ "compress=zstd" ];
|
||||||
|
"/nix".options = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernel.sysctl."kernel.sysrq" = 244;
|
boot.kernel.sysctl."kernel.sysrq" = 244;
|
||||||
|
|
||||||
boot.plymouth = {
|
boot.plymouth = {
|
||||||
|
|
@ -173,18 +180,8 @@ in
|
||||||
|
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
|
|
||||||
# Virtualisation
|
# VirtualBox
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
virtualisation.containers.enable = true;
|
|
||||||
virtualisation = {
|
|
||||||
podman = {
|
|
||||||
enable = true;
|
|
||||||
dockerCompat = false;
|
|
||||||
defaultNetwork.settings.dns_enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.waydroid.enable = true;
|
virtualisation.waydroid.enable = true;
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
virtualisation.virtualbox.host.package = pkgs.virtualbox;
|
virtualisation.virtualbox.host.package = pkgs.virtualbox;
|
||||||
|
|
@ -329,7 +326,7 @@ in
|
||||||
users.users.lgm = {
|
users.users.lgm = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "lgm";
|
description = "lgm";
|
||||||
extraGroups = [ "networkmanager" "wheel" "adbusers" "docker" "podman" "wireshark"];
|
extraGroups = [ "networkmanager" "wheel" "adbusers" "docker" "wireshark"];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -391,8 +388,6 @@ in
|
||||||
|
|
||||||
kdiskmark
|
kdiskmark
|
||||||
|
|
||||||
podman-compose
|
|
||||||
|
|
||||||
(let base = pkgs.appimageTools.defaultFhsEnvArgs; in
|
(let base = pkgs.appimageTools.defaultFhsEnvArgs; in
|
||||||
pkgs.buildFHSEnv (base // {
|
pkgs.buildFHSEnv (base // {
|
||||||
name = "fhs";
|
name = "fhs";
|
||||||
|
|
|
||||||
|
|
@ -21,25 +21,19 @@ in
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd" "subvol=root" ];
|
options = [ "subvol=root" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd" "noatime" "subvol=nix" ];
|
options = [ "subvol=nix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd" "subvol=home" ];
|
options = [ "subvol=home" ];
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/steamlibrary" =
|
|
||||||
{ device = root;
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd" "subvol=steamlibrary" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,23 @@
|
||||||
monero-gui
|
monero-gui
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
systemd.user.services.app-input-leap-client = {
|
||||||
|
Unit = {
|
||||||
|
Description = "input-leap client";
|
||||||
|
After = [ "graphical-session-pre.target" "network.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.input-leap}/bin/input-leapc -f --debug DEBUG --name lgm-nixos --disable-crypto [wandering-nomad.lan]:24800";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Email stuff
|
# Email stuff
|
||||||
|
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,21 @@
|
||||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.automounts = [
|
||||||
|
{
|
||||||
|
where = "/mounts/my_data";
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
automountConfig = {
|
||||||
|
TimeoutIdleSec = 901;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
where = "/mounts/windows";
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
automountConfig = {
|
||||||
|
TimeoutIdleSec = 901;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,6 @@ in
|
||||||
vim
|
vim
|
||||||
tmux
|
tmux
|
||||||
sops
|
sops
|
||||||
podman-compose
|
|
||||||
gnumake
|
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.lgm = {
|
users.users.lgm = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue