mirror of
https://github.com/larstvei/nix-config.git
synced 2025-09-15 11:30:13 +00:00
Restructure the configuration
This commit is contained in:
parent
05fa93fc50
commit
c50f3e2578
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.darwinModules.default
|
home-manager.darwinModules.default
|
||||||
./machines/macbook/configuration.nix
|
./machines/macbook
|
||||||
nix-rosetta-builder.darwinModules.default
|
nix-rosetta-builder.darwinModules.default
|
||||||
{ nix-rosetta-builder.onDemand = true; }
|
{ nix-rosetta-builder.onDemand = true; }
|
||||||
];
|
];
|
||||||
@ -61,7 +61,7 @@
|
|||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.default
|
home-manager.nixosModules.default
|
||||||
./machines/thinkpad/configuration.nix
|
./machines/thinkpad
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
{ pkgs, emacs-larstvei, ... }:
|
{ pkgs, emacs-larstvei, ... }:
|
||||||
let
|
|
||||||
v = import ./variables.nix;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../system
|
../../modules/base
|
||||||
../../system/darwin
|
../../modules/darwin
|
||||||
];
|
];
|
||||||
|
|
||||||
system.primaryUser = v.username;
|
system.primaryUser = "larstvei";
|
||||||
|
|
||||||
networking.hostName = v.hostName;
|
networking.hostName = "larstvei-macbookpro";
|
||||||
|
|
||||||
users.users.${v.username} = {
|
users.users.larstvei = {
|
||||||
home = v.userHome;
|
home = "/Users/larstvei";
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -21,7 +18,7 @@ in
|
|||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit emacs-larstvei; };
|
extraSpecialArgs = { inherit emacs-larstvei; };
|
||||||
users.${v.username}.imports = [ ../../home ];
|
users.larstvei.imports = [ ../../modules/home ];
|
||||||
};
|
};
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
username = "larstvei";
|
|
||||||
userHome = "/Users/larstvei";
|
|
||||||
hostName = "larstvei-macbookpro";
|
|
||||||
}
|
|
@ -5,15 +5,12 @@
|
|||||||
zen-browser,
|
zen-browser,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
v = import ./variables.nix;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../system
|
./keyboard
|
||||||
../../system/nixos
|
./hardware
|
||||||
./keyboard.nix
|
../../modules/base
|
||||||
./hardware-configuration.nix
|
../../modules/nixos
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@ -24,9 +21,9 @@ in
|
|||||||
inherit emacs-larstvei;
|
inherit emacs-larstvei;
|
||||||
inherit zen-browser;
|
inherit zen-browser;
|
||||||
};
|
};
|
||||||
users.${v.username}.imports = [
|
users.larstvei.imports = [
|
||||||
../../home
|
../../modules/home
|
||||||
../../home/desktop
|
../../modules/desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -35,15 +32,15 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "hyprland";
|
command = "hyprland";
|
||||||
user = v.username;
|
user = "larstvei";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${v.username} = {
|
users.users.larstvei = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Lars Tveito";
|
description = "Lars Tveito";
|
||||||
home = v.userHome;
|
home = "/home/larstvei";
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
@ -51,7 +48,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = v.hostName;
|
networking.hostName = "larstvei-think";
|
||||||
|
|
||||||
console.keyMap = "us";
|
console.keyMap = "us";
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
username = "larstvei";
|
|
||||||
userHome = "/home/larstvei";
|
|
||||||
hostName = "larstvei-think";
|
|
||||||
}
|
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../home/fonts
|
../fonts
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.linux-builder.enable = true;
|
nix.linux-builder.enable = true;
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./languages
|
../languages
|
||||||
./tools
|
../tools
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../home/fonts
|
../fonts
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
Loading…
Reference in New Issue
Block a user