naming conventions
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{ withSystem, self, inputs, ... }:
|
{ withSystem, self, inputs, ... }:
|
||||||
let
|
let
|
||||||
username = "john";
|
username = "john";
|
||||||
hostname = "omen";
|
hostname = "john-kde";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }:
|
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }:
|
||||||
@@ -62,7 +62,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.homeConfigurations."john@omen" = withSystem "x86_64-linux" (ctx@{ system, inputs', ... }:
|
flake.homeConfigurations."john@john-kde" = withSystem "x86_64-linux" (ctx@{ system, inputs', ... }:
|
||||||
inputs.home-manager.lib.homeManagerConfiguration {
|
inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = inputs'.nixpkgs.legacyPackages;
|
pkgs = inputs'.nixpkgs.legacyPackages;
|
||||||
modules = [ inputs.self.modules.homeManager."${hostname}" ]; # Uses the module defined above
|
modules = [ inputs.self.modules.homeManager."${hostname}" ]; # Uses the module defined above
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ in
|
|||||||
desktop
|
desktop
|
||||||
step-client
|
step-client
|
||||||
mysops
|
mysops
|
||||||
|
# zed-editor
|
||||||
# myPackage
|
# myPackage
|
||||||
# myStepClient
|
# myStepClient
|
||||||
];
|
];
|
||||||
@@ -38,6 +39,7 @@ in
|
|||||||
home.username = "${username}";
|
home.username = "${username}";
|
||||||
home.homeDirectory = "/home/${username}";
|
home.homeDirectory = "/home/${username}";
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
nil # Nix language server
|
||||||
selfPkgs.jsl-zsh
|
selfPkgs.jsl-zsh
|
||||||
# selfPkgs.my-neovim
|
# selfPkgs.my-neovim
|
||||||
selfPkgs.ssh-certs
|
selfPkgs.ssh-certs
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{ self, inputs, ... }: {
|
{ self, inputs, ... }: {
|
||||||
|
|
||||||
flake.modules.nixos.omen = { pkgs, lib, ... }: {
|
flake.modules.nixos.omen-nixos = { pkgs, lib, ... }: {
|
||||||
# import any other modules from here
|
# import any other modules from here
|
||||||
imports = [
|
imports = [
|
||||||
self.modules.nixos.omenHardware
|
self.modules.nixos.omen-nixos-hardware
|
||||||
self.modules.nixos.base
|
self.modules.nixos.base
|
||||||
self.modules.nixos.greetd
|
self.modules.nixos.greetd
|
||||||
self.modules.nixos.niri
|
self.modules.nixos.niri
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
# Use latest kernel.
|
# Use latest kernel.
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
networking.hostName = "nixos-omen"; # Define your hostname.
|
networking.hostName = "omen-nixos"; # Define your hostname.
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ self, inputs, ... }: {
|
{ self, inputs, ... }: {
|
||||||
flake.nixosConfigurations.omen = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.omen-nixos = inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
self.modules.nixos.omen
|
self.modules.nixos.omen-nixos
|
||||||
self.modules.nixos.john
|
self.modules.nixos.john
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ self, inputs, ... }: {
|
{ self, inputs, ... }: {
|
||||||
flake.modules.nixos.omenHardware = { config, lib, pkgs, modulesPath, ... }: {
|
flake.modules.nixos.omen-nixos-hardware = { config, lib, pkgs, modulesPath, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user