First working version of NixOS intall

This commit is contained in:
Yorick Barbanneau 2023-07-23 01:18:29 +02:00
commit 5ab67429b2
47 changed files with 1801 additions and 0 deletions

5
modules/nixos/doas.nix Normal file
View file

@ -0,0 +1,5 @@
{ config, ...}:
{
security.doas.enable = true;
security.sudo.enable = false;
}

13
modules/nixos/neovim.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
neovim
];
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
};
}

View file

@ -0,0 +1,9 @@
{ config, pkgs, ...}:
{
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}

7
modules/nixos/steam.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
programs.steam = {
enable = true;
gamescopeSession.enable = true;
};
}

View file

@ -0,0 +1,9 @@
{ config, pkgs, ...}:
{
xdg.portal = {
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}