Skip to content

Commit

Permalink
nixos refactor structure
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKnarf committed Jul 12, 2024
1 parent 42ebd89 commit 5ecec01
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 27 deletions.
89 changes: 88 additions & 1 deletion os/nixos/flake.lock

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

14 changes: 13 additions & 1 deletion os/nixos/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};

hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};

hyprland-hyprspace = {
url = "github:KZDKM/Hyprspace";
inputs.hyprland.follows = "hyprland";
};

ags.url = "github:Aylur/ags";
};

outputs = { nixpkgs, home-manager, hyprland, ... } @ inputs:
Expand All @@ -32,7 +44,7 @@
inherit system;

modules = [
./machine/configuration.nix
./host/nixos.config.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,32 @@

{
imports = [
./hardware-configuration.nix
./steam.nix
./audio-video.nix
./virtual.nix
# Hardware configuration
./nixos.hardware.nix

# Modules
./mods/steam.nix
./mods/audio-video.nix
./mods/virtual.nix
];

# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];

# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};

# Enable networking
networking.hostName = "nixos";
networking.interfaces.enp5s0.wakeOnLan.enable = true;
networking.networkmanager.enable = true;
networking = {
networkmanager.enable = true;
hostName = "nixos";

# Enable wake on lan
interfaces.enp5s0.wakeOnLan.enable = true;
};

# Time zone & locale
time.timeZone = "Europe/Oslo";
Expand Down Expand Up @@ -64,22 +73,6 @@

programs.zsh.enable = true;

/*
home-manager.users.knarf = { pkgs, ... }: {
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.05";
};
*/

# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };

# Enable the OpenSSH daemon.
services.openssh.enable = true;

Expand Down
File renamed without changes.

0 comments on commit 5ecec01

Please sign in to comment.