Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 90 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
url = "github:Johnsoct/alacritty";
flake = false;
};

flatpaks = {
url = "github:GermanBread/declarative-flatpak/stable-v3";
};
};

outputs = { nixpkgs, ... } @ inputs:
Expand Down
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ in

modules = [
inputs.home-manager.nixosModules.home-manager
inputs.flatpaks.nixosModules.declarative-flatpak

../nixos/system
config.nixosSystemModule
Expand Down
8 changes: 8 additions & 0 deletions nixos/system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@

services.openssh.enable = true;

services.flatpak = {
enable = true;
packages = [ "flathub:app/org.vinegarhq.Sober//stable" ];
remotes = {
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
};
};

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
Expand Down
10 changes: 9 additions & 1 deletion nixos/system/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
# Enable AMD GPU support
boot.initrd.kernelModules = [ "amdgpu" ];

boot.kernelParams = [ "video=DP-1:2560x1440@165" "video=DP-3:1920x1080@144" ];
boot.kernelParams = [
"video=DP-1:2560x1440@165"
"video=DP-3:1920x1080@144"
"kvm.enable_virt_at_load=0"
];
virtualisation.virtualbox.host = {
enable = true;
enableExtensionPack = true;
};

boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
Expand Down
6 changes: 5 additions & 1 deletion nixos/system/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

shell = pkgs.zsh;

extraGroups = [ "networkmanager" "wheel" ];
extraGroups = [
"networkmanager"
"wheel"
"vboxusers"
];
};

security.sudo.wheelNeedsPassword = false;
Expand Down