refactor: change configuration to system

This commit is contained in:
Oliver Davies 2023-03-22 23:47:48 +00:00
parent 8a22a861d4
commit 98a47d867e
10 changed files with 36 additions and 36 deletions

View file

@ -1,22 +0,0 @@
{ pkgs, ... }:
let
nixpkgs = import ../shared/nixpkgs.nix { };
in
{
imports = [
../../home-manager/modules/common.nix
../../home-manager/modules/git.nix
../../home-manager/modules/home-manager.nix
../../home-manager/modules/tmux.nix
../../home-manager/modules/zsh.nix
];
nixpkgs = nixpkgs;
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
jetbrains-mono
];
}

View file

@ -1,11 +0,0 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../home-manager/modules/common.nix
../../home-manager/modules/git.nix
../../home-manager/modules/home-manager.nix
../../home-manager/modules/tmux.nix
../../home-manager/modules/zsh.nix
];
}

View file

@ -19,7 +19,7 @@
apollo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos/apollo/configuration.nix
./system/nixos/apollo/configuration.nix
{ nixpkgs.overlays = overlays; }
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
@ -34,7 +34,7 @@
pop-os = home-manager.lib.homeManagerConfiguration {
modules = [
{ nixpkgs.overlays = overlays; }
./configuration/pop-os
./system/pop-os.nix
];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
@ -42,7 +42,7 @@
wsl2 = home-manager.lib.homeManagerConfiguration {
modules = [
{ nixpkgs.overlays = overlays; }
./configuration/wsl2
./system/wsl2.nix
];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};

22
system/pop-os.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
let
nixpkgs = import ./shared/nixpkgs.nix { };
in
{
imports = [
../home-manager/modules/common.nix
../home-manager/modules/git.nix
../home-manager/modules/home-manager.nix
../home-manager/modules/tmux.nix
../home-manager/modules/zsh.nix
];
nixpkgs = nixpkgs;
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
jetbrains-mono
];
}

11
system/wsl2.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
imports = [
../home-manager/modules/common.nix
../home-manager/modules/git.nix
../home-manager/modules/home-manager.nix
../home-manager/modules/tmux.nix
../home-manager/modules/zsh.nix
];
}