mirror of
https://gitlab.com/foxixus/nixos.git
synced 2025-12-17 08:08:59 +01:00
117 lines
2 KiB
Nix
117 lines
2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
./packages.nix
|
|
./plasma.nix
|
|
];
|
|
|
|
boot.loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
grub = {
|
|
efiSupport = true;
|
|
enable = true;
|
|
device = "nodev";
|
|
useOSProber = true;
|
|
};
|
|
};
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
programs.nh = {
|
|
enable = true;
|
|
clean.enable = true;
|
|
flake = "/home/foxix/nix";
|
|
};
|
|
|
|
networking.hostName = "nixos";
|
|
|
|
time.timeZone = "Europe/Chisinau";
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
pulse.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
package = pkgs.bluez;
|
|
settings = {
|
|
General = {
|
|
Enable = "Source,Sink,Media,Socket";
|
|
ControllerMode = "dual";
|
|
Experimental = true;
|
|
};
|
|
Policy = {
|
|
AutoEnable = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
systemd = {
|
|
packages = [ pkgs.bluez ];
|
|
services.bluetooth = {
|
|
serviceConfig = {
|
|
ExecStart = [
|
|
""
|
|
"${pkgs.bluez}/libexec/bluetooth/bluetoothd --noplugin=sap"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
users.users.foxix = {
|
|
isNormalUser = true;
|
|
description = "foxix";
|
|
home = "/home/foxix";
|
|
shell = pkgs.fish;
|
|
extraGroups = [
|
|
"wheel"
|
|
"networkmanager"
|
|
"adbusers"
|
|
"plugdev"
|
|
"docker"
|
|
];
|
|
};
|
|
|
|
programs.fish = {
|
|
enable = true;
|
|
shellInit = ''
|
|
function fish_greeting
|
|
end
|
|
'';
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 15d";
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
security.sudo.enable = true;
|
|
security.sudo.wheelNeedsPassword = true;
|
|
services.openssh.enable = true;
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|
|
|