1
0
Fork 0

feat: add nix conf

This commit is contained in:
cătălin 2024-12-08 17:47:42 +01:00
commit 9d1574ffef
No known key found for this signature in database

135
nix/configuration.nix Normal file
View file

@ -0,0 +1,135 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
(import <nix-snapd>).nixosModules.default
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
services.snap.enable = true;
networking.hostName = "limgrave";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Madrid";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "es_ES.UTF-8";
LC_IDENTIFICATION = "es_ES.UTF-8";
LC_MEASUREMENT = "es_ES.UTF-8";
LC_MONETARY = "es_ES.UTF-8";
LC_NAME = "es_ES.UTF-8";
LC_NUMERIC = "es_ES.UTF-8";
LC_PAPER = "es_ES.UTF-8";
LC_TELEPHONE = "es_ES.UTF-8";
LC_TIME = "es_ES.UTF-8";
};
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.pantheon.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.catalin = {
isNormalUser = true;
description = "catalin";
shell = pkgs.fish;
useDefaultShell = true;
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
flatpak
];
};
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
services.flatpak.enable = true;
environment.systemPackages = with pkgs; [
vim
wget
nextcloud-client
kitty
steam
vesktop
pantheon-tweaks
protonup-qt
jellyfin-media-player
spotify
adwaita-icon-theme
jetbrains.pycharm-professional
fishPlugins.z
fishPlugins.tide
fishPlugins.transient-fish
fishPlugins.git-abbr
fishPlugins.done
fishPlugins.colored-man-pages
lutris
telegram-desktop
leaf
restic
bitwarden
uv
tmux
git
dotter
pre-commit
kubectl
k9s
trashy
cargo
inconsolata
inconsolata-nerdfont
];
programs = {
bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
fish.enable = true;
steam = {
enable = true;
package = pkgs.steam.override {
extraLibraries = p: with p; [(lib.getLib networkmanager)];
};
};
};
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
systemd.services.flatpak-repo = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
services.openssh.enable = true;
virtualisation.docker.enable = true;
networking.nameservers = [ "192.168.1.7" "1.1.1.1" ];
system.stateVersion = "24.11";
}