Merge branch 'master' of github.com:aciceri/nixfleet
This commit is contained in:
commit
8c93e5a526
15 changed files with 78 additions and 22 deletions
|
@ -168,7 +168,7 @@
|
||||||
gui = [ sway xdg gtk foot bat ];
|
gui = [ sway xdg gtk foot bat ];
|
||||||
browser = [ firefox chromium qutebrowser tor-browser ];
|
browser = [ firefox chromium qutebrowser tor-browser ];
|
||||||
multimedia = [ mpv zathura ];
|
multimedia = [ mpv zathura ];
|
||||||
dev = [ vim emacs vscode lorri direnv ];
|
dev = [ vim emacs vscode lorri direnv qmk ];
|
||||||
modelling = [ blender cura ];
|
modelling = [ blender cura ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -165,10 +165,27 @@
|
||||||
guiAddress = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
dataDir = "/mnt/archivio/syncthing";
|
dataDir = "/mnt/archivio/syncthing";
|
||||||
user = "ccr";
|
user = "ccr";
|
||||||
|
folders = {
|
||||||
|
"/mnt/archivio/syncthing/camera" = {
|
||||||
|
id = "camera";
|
||||||
|
};
|
||||||
|
"/mnt/archivio/syncthing/orgzly" = {
|
||||||
|
id = "orgzly";
|
||||||
|
};
|
||||||
|
"/mnt/archivio/syncthing/roam" = {
|
||||||
|
id = "roam";
|
||||||
|
};
|
||||||
|
"/mnt/archivio/syncthing/whatsapp" = {
|
||||||
|
id = "whatsapp";
|
||||||
|
};
|
||||||
|
"/mnt/archivio/syncthing/calls" = {
|
||||||
|
id = "calls";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
navidrome = {
|
navidrome = {
|
||||||
enable = true;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
Address = "0.0.0.0";
|
Address = "0.0.0.0";
|
||||||
Port = 9093;
|
Port = 9093;
|
||||||
|
@ -259,6 +276,14 @@
|
||||||
email = "andrea.ciceri@autistici.org";
|
email = "andrea.ciceri@autistici.org";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,8 @@
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixUnstable;
|
package = pkgs.nixUnstable;
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes flakes ca-references
|
|
||||||
keep-derivations = true
|
|
||||||
keep-outputs = true
|
|
||||||
'';
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = false;
|
automatic = true;
|
||||||
user = "andreaciceri";
|
user = "andreaciceri";
|
||||||
options = "--delete-older-than 3d";
|
options = "--delete-older-than 3d";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ config, lib, pkgs, profiles, pbpKernelLatest, ... }:
|
{ config, lib, pkgs, profiles, pbpKernelLatest, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg ];
|
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg syncthing ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "usbhid" ];
|
initrd.availableKernelModules = [ "usbhid" ];
|
||||||
kernelPackages = pbpKernelLatest;
|
kernelPackages = pbpKernelLatest;
|
||||||
kernelModules = [];
|
kernelModules = [ ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
v4l2loopback
|
v4l2loopback
|
||||||
];
|
];
|
||||||
|
@ -45,7 +45,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; } ];
|
[{ device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; }];
|
||||||
|
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
] ++ suites.base;
|
] ++ suites.base;
|
||||||
|
|
||||||
bud.enable = true;
|
bud.enable = false;
|
||||||
bud.localFlakeClone = "/home/ccr/fleet";
|
bud.localFlakeClone = "/home/ccr/fleet";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, profiles, ... }:
|
{ config, lib, pkgs, profiles, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg docker adb ];
|
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg docker adb syncthing ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
@ -43,5 +43,13 @@
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-label/swap"; }];
|
[{ device = "/dev/disk/by-label/swap"; }];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ in
|
||||||
nix-index
|
nix-index
|
||||||
nmap
|
nmap
|
||||||
ripgrep
|
ripgrep
|
||||||
skim
|
#skim
|
||||||
tealdeer
|
tealdeer
|
||||||
tmux
|
tmux
|
||||||
usbutils
|
usbutils
|
||||||
|
|
8
profiles/syncthing/default.nix
Normal file
8
profiles/syncthing/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
guiAddress = "127.0.0.1:8384";
|
||||||
|
dataDir = "/home/ccr/syncthing";
|
||||||
|
user = "ccr";
|
||||||
|
};
|
||||||
|
}
|
|
@ -25,8 +25,6 @@
|
||||||
gphoto2
|
gphoto2
|
||||||
digikam
|
digikam
|
||||||
rawtherapee
|
rawtherapee
|
||||||
freecad
|
|
||||||
openscad
|
|
||||||
deploy-rs.deploy-rs
|
deploy-rs.deploy-rs
|
||||||
] ++
|
] ++
|
||||||
(if !stdenv.hostPlatform.isAarch64 then [ wineWowPackages.full ] else [ ])
|
(if !stdenv.hostPlatform.isAarch64 then [ wineWowPackages.full ] else [ ])
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
openscad
|
||||||
] ++ (if !stdenv.hostPlatform.isAarch64 then [
|
] ++ (if !stdenv.hostPlatform.isAarch64 then [
|
||||||
blender
|
blender
|
||||||
|
freecad
|
||||||
]
|
]
|
||||||
else [ ]);
|
else [ ]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
package = pkgs.customEmacs;
|
package = pkgs.customEmacs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# For some reason Hunspell dictionaries paths must be specified on Darwin
|
# For some reason Hunspell dictionaries paths must be specified on Darwin
|
||||||
home.sessionVariables =
|
home.sessionVariables =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then {
|
if pkgs.stdenv.hostPlatform.isDarwin then {
|
||||||
|
@ -34,7 +38,6 @@
|
||||||
ag
|
ag
|
||||||
fd
|
fd
|
||||||
graphviz-nox
|
graphviz-nox
|
||||||
haskell-language-server
|
|
||||||
hunspell
|
hunspell
|
||||||
hunspellDicts.en_US
|
hunspellDicts.en_US
|
||||||
hunspellDicts.it_IT
|
hunspellDicts.it_IT
|
||||||
|
@ -58,6 +61,7 @@
|
||||||
)
|
)
|
||||||
] ++ (if pkgs.system == "x86_64-linux" then [
|
] ++ (if pkgs.system == "x86_64-linux" then [
|
||||||
python-language-server
|
python-language-server
|
||||||
|
haskell-language-server
|
||||||
] ++ (with easy-ps; [
|
] ++ (with easy-ps; [
|
||||||
# spago2nix
|
# spago2nix
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
backup-by-copying t
|
backup-by-copying t
|
||||||
delete-old-versions 6
|
delete-old-versions 6
|
||||||
kept-old-versions 2
|
kept-old-versions 2
|
||||||
version-control t)
|
version-control t
|
||||||
|
create-lockfiles nil)
|
||||||
|
|
||||||
(provide 'config-emacs)
|
(provide 'config-emacs)
|
||||||
|
|
5
users/profiles/qmk/default.nix
Normal file
5
users/profiles/qmk/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }: with pkgs; {
|
||||||
|
|
||||||
|
home.packages = [ qmk ];
|
||||||
|
|
||||||
|
}
|
|
@ -57,8 +57,8 @@
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
"${modifier}+x" = "exec ${pkgs.customEmacs}/bin/emacs";
|
"${modifier}+x" = "exec emacsclient -c";
|
||||||
"${modifier}+b" = "exec ${pkgs.firefox}/bin/firefox";
|
"${modifier}+b" = "exec firefox";
|
||||||
"${modifier}+s" = "exec ${screenshotScript}";
|
"${modifier}+s" = "exec ${screenshotScript}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,8 +29,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
haskell-language-server
|
|
||||||
stylish-haskell
|
stylish-haskell
|
||||||
ghc
|
ghc
|
||||||
];
|
] ++ (if pkgs.system == "x86_64-linux" then [
|
||||||
|
haskell-language-server
|
||||||
|
] else [ ]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue