140 lines
3.1 KiB
Nix
140 lines
3.1 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "dragon";
|
|
networking.extraHosts = ''
|
|
127.0.0.1 yeswiki.test
|
|
163.172.173.184 aleks-test-install-bookworm.test
|
|
'';
|
|
networking.networkmanager.enable = true;
|
|
|
|
time.timeZone = "Europe/Moscow";
|
|
|
|
i18n.defaultLocale = "fr_FR.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "fr_FR.UTF-8";
|
|
LC_IDENTIFICATION = "fr_FR.UTF-8";
|
|
LC_MEASUREMENT = "fr_FR.UTF-8";
|
|
LC_MONETARY = "fr_FR.UTF-8";
|
|
LC_NAME = "fr_FR.UTF-8";
|
|
LC_NUMERIC = "fr_FR.UTF-8";
|
|
LC_PAPER = "fr_FR.UTF-8";
|
|
LC_TELEPHONE = "fr_FR.UTF-8";
|
|
LC_TIME = "fr_FR.UTF-8";
|
|
};
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
hardware.graphics = {
|
|
enable = true;
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.nvidia.acceptLicense = true;
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
powerManagement.finegrained = false;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
|
};
|
|
services.tailscale = {
|
|
enable = true;
|
|
};
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
settings.gui = {
|
|
user = "mrflos";
|
|
password = "VerySecurePassword";
|
|
};
|
|
};
|
|
services.xserver = {
|
|
enable = true;
|
|
videoDrivers = [
|
|
"nvidia"
|
|
];
|
|
xkb.layout = "us";
|
|
xkb.variant = "";
|
|
};
|
|
|
|
fileSystems."/home/mrflos/Nas-music" = {
|
|
device = "diskstation.tailed460c.ts.net:/volume1/music";
|
|
options = [
|
|
#"nfsvers=4.2"
|
|
"x-systemd.automount"
|
|
"noauto"
|
|
#"rw"
|
|
#"relatime"
|
|
#"user"
|
|
#"acl"
|
|
#"defaults"
|
|
];
|
|
fsType = "nfs";
|
|
};
|
|
|
|
services.rpcbind.enable = true; # needed for NFS
|
|
#systemd.mounts = [
|
|
# {
|
|
# type = "nfs";
|
|
# mountConfig = {
|
|
# Options = "defaults,acl,user,noauto,relatime,rw";
|
|
# };
|
|
# what = "diskstation.tailed460c.ts.net:/volume1/music";
|
|
# where = "/mnt/nas/music";
|
|
# }
|
|
#];
|
|
|
|
#systemd.automounts = [
|
|
# {
|
|
# wantedBy = [ "multi-user.target" ];
|
|
# automountConfig = {
|
|
# TimeoutIdleSec = "600";
|
|
# };
|
|
# where = "/mnt/nas/music";
|
|
# }
|
|
#];
|
|
|
|
services.printing.enable = true;
|
|
security.wrappers."mount.nfs" = {
|
|
setuid = true;
|
|
owner = "root";
|
|
group = "root";
|
|
source = "${pkgs.nfs-utils.out}/bin/mount.nfs";
|
|
};
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
environment = {
|
|
sessionVariables = {
|
|
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
../../modules/console.nix
|
|
../../modules/desktop.nix
|
|
../../modules/fonts.nix
|
|
../../modules/home-config.nix
|
|
../../modules/local-dev.nix
|
|
../../modules/nixos.nix
|
|
../../modules/systemd-unfreeze.nix
|
|
../../modules/zen-browser.nix
|
|
];
|
|
|
|
#services.ollama = {
|
|
# enable = true;
|
|
# acceleration = "cuda";
|
|
#};
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
}
|