Skip to content

Commit

Permalink
fix system asuna
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmanishere committed Apr 27, 2024
1 parent 0944eca commit d6232f0
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 31 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

3 changes: 0 additions & 3 deletions home/browsers/firefox.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
inputs,
outputs,
config,
pkgs,
lib,
...
}:
Expand Down
10 changes: 10 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@

# for specific systems

luqman-asuna = {
imports = [
self.homeModules.common
./luqman-home.nix
self.homeModules.gui
self.homeModules.wayland
self.homeModules.misc-gui
];
};

luqman-sinon = {
imports = [
self.homeModules.common
Expand Down
3 changes: 2 additions & 1 deletion home/tools/fonts.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
self,
flake,
pkgs,
lib,
config,
...
}:
with lib; let
inherit (flake) self;
cfg = config.modules.tools.fonts;
in {
imports = [];
Expand Down
3 changes: 2 additions & 1 deletion home/wayland-shell/ags/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
inputs,
flake,
lib,
config,
pkgs,
...
}:
with lib; let
inherit (flake) inputs;
cfg = config.modules.wayland-shell.ags;
in {
imports = [inputs.ags.homeManagerModules.default];
Expand Down
6 changes: 4 additions & 2 deletions home/wayland-shell/anyrun/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
inputs,
flake,
pkgs,
...
}: {
}: let
inherit (flake) inputs;
in {
imports = [inputs.anyrun.homeManagerModules.default];
config = {
programs.anyrun = {
Expand Down
3 changes: 2 additions & 1 deletion home/wayland-shell/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
inputs,
flake,
config,
pkgs,
lib,
...
}:
with lib; let
inherit (flake) inputs;
cfg = config.hyprland;
in {
imports = [
Expand Down
3 changes: 2 additions & 1 deletion home/wayland-shell/wayper.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
flake,
config,
inputs,
lib,
...
}:
with lib; let
inherit (flake) inputs;
cfg = config.modules.wayland-shell.wayper;
in {
imports = [inputs.wayper.homeManagerModules.default];
Expand Down
10 changes: 9 additions & 1 deletion nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,24 @@
./dev.nix
./shells.nix
];
common = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
};

# system specific configurations

# main laptop configuration
asuna = {
imports = [
self.nixosModules.common
./experimental/protonvpn.nix
./steam.nix
];

# never forget to import important things
home-manager.users.luqman = {
imports = [self.homeModules.luqman-asuna];
};
};

# wsl setup
Expand Down
34 changes: 17 additions & 17 deletions systems/asuna/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,23 @@ in {
udisks2.enable = true;
tailscale.enable = true;

protonvpn = {
enable = true;
autostart = false;
interface = {
ip = "10.2.0.2/32";
privateKeyFile = "/etc/protonkey";
dns = {
enable = true;
ip = "10.2.0.1";
};
};
endpoint = {
publicKey = "6vLkUgiS/K8p5dTMwUQo6tiyJ65DrM8E2mwO+QFz/zs=";
ip = "138.199.21.206";
port = 51820;
};
};
# protonvpn = {
# enable = true;
# autostart = false;
# interface = {
# ip = "10.2.0.2/32";
# privateKeyFile = "/etc/protonkey";
# dns = {
# enable = true;
# ip = "10.2.0.1";
# };
# };
# endpoint = {
# publicKey = "6vLkUgiS/K8p5dTMwUQo6tiyJ65DrM8E2mwO+QFz/zs=";
# ip = "138.199.21.206";
# port = 51820;
# };
# };

# TODO: move xremap to dedicated module
xremap = {
Expand Down
7 changes: 6 additions & 1 deletion systems/asuna/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
config,
pkgs,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

boot = {
loader = {
systemd-boot.enable = true;
Expand All @@ -12,7 +17,7 @@
};

# use the latest zen kernel
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
kernelPackages = pkgs.linuxPackages_zen;

initrd = {
# TODO: resetup impermeanance
Expand Down

0 comments on commit d6232f0

Please sign in to comment.