mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: lazy way to add groups
This commit is contained in:
parent
2b3fb09642
commit
c58013738a
9 changed files with 17 additions and 79 deletions
|
|
@ -30,9 +30,6 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
"libvirtd"
|
||||
"dialout"
|
||||
]; # Enable ‘sudo’ for the user.
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJToUo2jT3qt7eHIME9e1awabZZVmtKhbxwVz9BMSM2d js0ny@zephyrus"
|
||||
|
|
|
|||
|
|
@ -5,5 +5,4 @@
|
|||
korganizer
|
||||
kdepim-addons
|
||||
];
|
||||
services.xserver.desktopManager.cinnamon.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{...}: {
|
||||
{config, ...}: {
|
||||
# Xilinx Artix-7 Basys 3
|
||||
services.udev.extraRules = ''
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0660", GROUP="dialout", SYMLINK+="basys3"
|
||||
'';
|
||||
users.users.${config.var.username} = {
|
||||
extraGroups = ["dialout"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
dnsmasq
|
||||
|
|
@ -13,7 +17,7 @@
|
|||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
users.users.js0ny = {
|
||||
users.users.${config.var.username} = {
|
||||
extraGroups = ["libvirtd"];
|
||||
};
|
||||
networking.firewall.trustedInterfaces = ["virbr0"];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
{config, ...}: {
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
podman.enable = true;
|
||||
};
|
||||
users.users.${config.var.username} = {
|
||||
extraGroups = ["docker" "podman"];
|
||||
};
|
||||
|
||||
# systemd.services.docker = {
|
||||
# serviceConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue