-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from khaykingleb/refactoring
Refactoring
- Loading branch information
Showing
20 changed files
with
146 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Handles system-level configuration for Macbook Pro M1 (macOS) | ||
{ hostName, ... }: | ||
{ | ||
imports = [ | ||
../../modules/darwin | ||
./home-manager.nix | ||
]; | ||
|
||
# Used for backwards compatibility | ||
system.stateVersion = 5; | ||
|
||
# networking.hostName = hostName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ pkgs, user, ... }: | ||
{ | ||
users.users.${user} = { | ||
name = user; | ||
home = "/Users/${user}"; | ||
shell = pkgs.zsh; | ||
}; | ||
|
||
home-manager = { | ||
verbose = true; | ||
useGlobalPkgs = true; | ||
useUserPackages = true; | ||
backupFileExtension = "home-manager-backup"; | ||
users.${user} = import ../../users/${user}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ ... }: | ||
{ | ||
imports = [ | ||
./packages.nix | ||
]; | ||
|
||
nixpkgs = { | ||
config = { | ||
allowUnfree = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# System level configuration for MacOS | ||
{ pkgs, ... }: | ||
{ | ||
imports = [ | ||
../common | ||
]; | ||
|
||
# Auto upgrade nix package and the daemon service. | ||
# services.nix-daemon.enable = true; | ||
|
||
nix = { | ||
settings = { | ||
# Necessary for using flakes on this system | ||
experimental-features = "nix-command flakes"; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
{ ... }: | ||
{ pkgs, ... }: | ||
{ | ||
# Enable HM to manage itself when in standalone mode | ||
programs.home-manager.enable = true; | ||
imports = [ | ||
./programs | ||
./fonts.nix | ||
]; | ||
|
||
home = { | ||
username = "khaykingleb"; | ||
homeDirectory = "/Users/khaykingleb"; | ||
|
||
# You should stay at the version you originally installed | ||
stateVersion = "24.11"; | ||
homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/khaykingleb" else "/home/khaykingleb"; | ||
stateVersion = "24.11"; # NOTE: you should stay at the version you originally installed | ||
}; | ||
|
||
imports = [ | ||
./programs | ||
./fonts.nix | ||
]; | ||
# Enable HM to manage itself when in standalone mode | ||
programs.home-manager.enable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.